mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 12:22:35 +03:00
754f9336f0
git-svn-id: svn://kolibrios.org@4349 a494cfbc-eb01-0410-851d-a64ba20cac60
20 lines
459 B
C
20 lines
459 B
C
/* BSD strsep function */
|
|
|
|
/* Copyright 2002, Red Hat Inc. */
|
|
|
|
/* undef STRICT_ANSI so that strsep prototype will be defined */
|
|
#undef __STRICT_ANSI__
|
|
#include <string.h>
|
|
#include <_ansi.h>
|
|
#include <reent.h>
|
|
|
|
extern char *__strtok_r (char *, const char *, char **, int);
|
|
|
|
char *
|
|
_DEFUN (strsep, (source_ptr, delim),
|
|
register char **source_ptr _AND
|
|
register const char *delim)
|
|
{
|
|
return __strtok_r (*source_ptr, delim, source_ptr, 0);
|
|
}
|