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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [string/] [strsep.c] - Blame information for rev 461

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* BSD strsep function */
2
 
3
/* Copyright 2002, Red Hat Inc. */
4
 
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>
10
 
11
extern char *__strtok_r (char *, const char *, char **, int);
12
 
13
char *
14
_DEFUN (strsep, (source_ptr, delim),
15
        register char **source_ptr _AND
16
        register const char *delim)
17
{
18
        return __strtok_r (*source_ptr, delim, source_ptr, 0);
19
}

powered by: WebSVN 2.1.0

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