Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / strsep.c
blobe1262ac3760664d06f9cd8d7b3d2a4d82452492a
1 /* BSD strsep function */
3 /* Copyright 2002, Red Hat Inc. */
5 /* undef STRICT_ANSI so that strsep prototype will be defined */
6 #undef __STRICT_ANSI__
7 #include <string.h>
8 #include <_ansi.h>
9 #include <reent.h>
11 extern char *__strtok_r (char *, const char *, char **, int);
13 char *
14 strsep (register char **source_ptr,
15 register const char *delim)
17 return __strtok_r (*source_ptr, delim, source_ptr, 0);