]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/string/strtok.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / string / strtok.c
1 /*
2  * Copyright (C) 2002     Manuel Novoa III
3  * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
4  *
5  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6  */
7
8 #include "_string.h"
9
10 #if 0 /*def WANT_WIDE*/
11 # define Wstrtok wcstok
12 # define Wstrtok_r wcstok_r
13 #else
14 # define Wstrtok strtok
15 # define Wstrtok_r strtok_r
16 #endif
17
18
19 Wchar *Wstrtok(Wchar * __restrict s1, const Wchar * __restrict s2)
20 {
21         static Wchar *next_start;       /* Initialized to 0 since in bss. */
22         return Wstrtok_r(s1, s2, &next_start);
23 }
24 libc_hidden_def(Wstrtok)