summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strspn.c')
-rw-r--r--src/lib/libc/string/strspn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libc/string/strspn.c b/src/lib/libc/string/strspn.c
index 50b7dbb095..d51a8cd3e6 100644
--- a/src/lib/libc/string/strspn.c
+++ b/src/lib/libc/string/strspn.c
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char *rcsid = "$OpenBSD: strspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; 31static char *rcsid = "$OpenBSD: strspn.c,v 1.4 2003/06/11 21:08:29 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>
@@ -37,12 +37,10 @@ static char *rcsid = "$OpenBSD: strspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $
37 * Span the string s2 (skip characters that are in s2). 37 * Span the string s2 (skip characters that are in s2).
38 */ 38 */
39size_t 39size_t
40strspn(s1, s2) 40strspn(const char *s1, const char *s2)
41 const char *s1;
42 register const char *s2;
43{ 41{
44 register const char *p = s1, *spanp; 42 const char *p = s1, *spanp;
45 register char c, sc; 43 char c, sc;
46 44
47 /* 45 /*
48 * Skip any characters in s2, excluding the terminating \0. 46 * Skip any characters in s2, excluding the terminating \0.