diff options
author | deraadt <> | 2003-06-11 21:08:16 +0000 |
---|---|---|
committer | deraadt <> | 2003-06-11 21:08:16 +0000 |
commit | 05ebc6b11cf74e0e9e901f2e1c26d0d682c57842 (patch) | |
tree | 0ab503c1cf313bdf01aa32f8ffd0938a3d19c2a9 /src/lib/libc/string/strtok.c | |
parent | 9b3b34e9713b6e433e3bb19fc1808375d5c69917 (diff) | |
download | openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.gz openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.tar.bz2 openbsd-05ebc6b11cf74e0e9e901f2e1c26d0d682c57842.zip |
ansification; pval ok
Diffstat (limited to 'src/lib/libc/string/strtok.c')
-rw-r--r-- | src/lib/libc/string/strtok.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/libc/string/strtok.c b/src/lib/libc/string/strtok.c index ff09630912..6498eac8cc 100644 --- a/src/lib/libc/string/strtok.c +++ b/src/lib/libc/string/strtok.c | |||
@@ -28,15 +28,13 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
31 | static char *rcsid = "$OpenBSD: strtok.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; | 31 | static char *rcsid = "$OpenBSD: strtok.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; |
32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
33 | 33 | ||
34 | #include <string.h> | 34 | #include <string.h> |
35 | 35 | ||
36 | char * | 36 | char * |
37 | strtok(s, delim) | 37 | strtok(char *s, const char *delim) |
38 | register char *s; | ||
39 | register const char *delim; | ||
40 | { | 38 | { |
41 | static char *last; | 39 | static char *last; |
42 | 40 | ||
@@ -44,13 +42,10 @@ strtok(s, delim) | |||
44 | } | 42 | } |
45 | 43 | ||
46 | char * | 44 | char * |
47 | strtok_r(s, delim, last) | 45 | strtok_r(char *s, const char *delim, char **last) |
48 | register char *s; | ||
49 | register const char *delim; | ||
50 | char **last; | ||
51 | { | 46 | { |
52 | register char *spanp; | 47 | char *spanp; |
53 | register int c, sc; | 48 | int c, sc; |
54 | char *tok; | 49 | char *tok; |
55 | 50 | ||
56 | 51 | ||