diff options
author | espie <> | 2005-06-19 22:12:07 +0000 |
---|---|---|
committer | espie <> | 2005-06-19 22:12:07 +0000 |
commit | dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65 (patch) | |
tree | 4449ef0e49aca9138958d50858c3ce50255544ca /src/lib/libc/string/wcstok.c | |
parent | 7019160947103ed769aa02b61ad609c0822a53cc (diff) | |
download | openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.gz openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.bz2 openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.zip |
K&R -> ANSI
APIWARN
okay millert@, otto@
Diffstat (limited to 'src/lib/libc/string/wcstok.c')
-rw-r--r-- | src/lib/libc/string/wcstok.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libc/string/wcstok.c b/src/lib/libc/string/wcstok.c index 1b0790fdc6..619aea8acb 100644 --- a/src/lib/libc/string/wcstok.c +++ b/src/lib/libc/string/wcstok.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcstok.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcstok.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcstok.c,v 1.3 2003/07/10 08:50:48 tshiozak Exp $ */ | 2 | /* $NetBSD: wcstok.c,v 1.3 2003/07/10 08:50:48 tshiozak Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -43,16 +43,14 @@ | |||
43 | */ | 43 | */ |
44 | 44 | ||
45 | #if defined(LIBC_SCCS) && !defined(lint) | 45 | #if defined(LIBC_SCCS) && !defined(lint) |
46 | static char *rcsid = "$OpenBSD: wcstok.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 46 | static char *rcsid = "$OpenBSD: wcstok.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
47 | #endif /* LIBC_SCCS and not lint */ | 47 | #endif /* LIBC_SCCS and not lint */ |
48 | 48 | ||
49 | #include <wchar.h> | 49 | #include <wchar.h> |
50 | 50 | ||
51 | wchar_t * | 51 | wchar_t * |
52 | wcstok(s, delim, last) | 52 | wcstok(wchar_t * __restrict s, const wchar_t * __restrict delim, |
53 | wchar_t * __restrict s; | 53 | wchar_t ** __restrict last) |
54 | const wchar_t * __restrict delim; | ||
55 | wchar_t ** __restrict last; | ||
56 | { | 54 | { |
57 | const wchar_t *spanp; | 55 | const wchar_t *spanp; |
58 | wchar_t c, sc; | 56 | wchar_t c, sc; |