summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strpbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strpbrk.c')
-rw-r--r--src/lib/libc/string/strpbrk.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/libc/string/strpbrk.c b/src/lib/libc/string/strpbrk.c
index f1d542a525..024c42bdc3 100644
--- a/src/lib/libc/string/strpbrk.c
+++ b/src/lib/libc/string/strpbrk.c
@@ -10,11 +10,7 @@
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software 13 * 3. Neither the name of the University nor the names of its contributors
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software 14 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission. 15 * without specific prior written permission.
20 * 16 *
@@ -32,8 +28,7 @@
32 */ 28 */
33 29
34#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strpbrk.c 5.8 (Berkeley) 1/26/91";*/ 31static char *rcsid = "$OpenBSD: strpbrk.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $";
36static char *rcsid = "$Id: strpbrk.c,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $";
37#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
38 33
39#include <string.h> 34#include <string.h>
@@ -42,11 +37,10 @@ static char *rcsid = "$Id: strpbrk.c,v 1.1.1.1 1995/10/18 08:42:23 deraadt Exp $
42 * Find the first occurrence in s1 of a character in s2 (excluding NUL). 37 * Find the first occurrence in s1 of a character in s2 (excluding NUL).
43 */ 38 */
44char * 39char *
45strpbrk(s1, s2) 40strpbrk(const char *s1, const char *s2)
46 register const char *s1, *s2;
47{ 41{
48 register const char *scanp; 42 const char *scanp;
49 register int c, sc; 43 int c, sc;
50 44
51 while ((c = *s1++) != 0) { 45 while ((c = *s1++) != 0) {
52 for (scanp = s2; (sc = *scanp++) != 0;) 46 for (scanp = s2; (sc = *scanp++) != 0;)