[vlc-devel] [PATCH] Win32: undefined reference to _strsep
Antoine Cellerier
dionoea at videolan.org
Wed Sep 3 21:52:52 CEST 2008
On Wed, Sep 03, 2008, Pierre d'Herbemont wrote:
> Geoffroy, do you fill like re-doing the patch? (By reimplementing
> strsep properly?)
As long as he doesn't empty re-doing the patch we should be fine ...
And it should look something like:
char *strsep( char **stringp, const char *delim )
{
assert( delim );
if( *string == NULL ) return NULL;
char *next = strstr( *stringp, delim );
char *orig = *stringp;
if( next == NULL )
*stringp = NULL;
else
{
*next = '\0';
*stringp = next + strlen( delim );
}
return orig;
}
I hope that I read the man page correctly this time.
Cheers,
--
Antoine Cellerier
dionoea
More information about the vlc-devel
mailing list