OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [string/] [strsep.c] - Diff between revs 158 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 158 Rev 816
/* BSD strsep function */
/* BSD strsep function */
 
 
/* Copyright 2002, Red Hat Inc. */
/* Copyright 2002, Red Hat Inc. */
 
 
/* undef STRICT_ANSI so that strsep prototype will be defined */
/* undef STRICT_ANSI so that strsep prototype will be defined */
#undef  __STRICT_ANSI__
#undef  __STRICT_ANSI__
#include <string.h>
#include <string.h>
#include <_ansi.h>
#include <_ansi.h>
#include <reent.h>
#include <reent.h>
 
 
extern char *__strtok_r (char *, const char *, char **, int);
extern char *__strtok_r (char *, const char *, char **, int);
 
 
char *
char *
_DEFUN (strsep, (source_ptr, delim),
_DEFUN (strsep, (source_ptr, delim),
        register char **source_ptr _AND
        register char **source_ptr _AND
        register const char *delim)
        register const char *delim)
{
{
        return __strtok_r (*source_ptr, delim, source_ptr, 0);
        return __strtok_r (*source_ptr, delim, source_ptr, 0);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.