summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strcspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strcspn.c')
-rw-r--r--src/lib/libc/string/strcspn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libc/string/strcspn.c b/src/lib/libc/string/strcspn.c
index d6aa099423..f96f903809 100644
--- a/src/lib/libc/string/strcspn.c
+++ b/src/lib/libc/string/strcspn.c
@@ -31,7 +31,7 @@
31 */ 31 */
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: strcspn.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; 34static char *rcsid = "$OpenBSD: strcspn.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <string.h> 37#include <string.h>
@@ -40,12 +40,10 @@ static char *rcsid = "$OpenBSD: strcspn.c,v 1.3 2003/06/02 20:18:38 millert Exp
40 * Span the complement of string s2. 40 * Span the complement of string s2.
41 */ 41 */
42size_t 42size_t
43strcspn(s1, s2) 43strcspn(const char *s1, const char *s2)
44 const char *s1;
45 register const char *s2;
46{ 44{
47 register const char *p, *spanp; 45 const char *p, *spanp;
48 register char c, sc; 46 char c, sc;
49 47
50 /* 48 /*
51 * Stop as soon as we find any character from s2. Note that there 49 * Stop as soon as we find any character from s2. Note that there