Initial revision
[reactos.git] / reactos / lib / crtdll / string / strpbrk.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <string.h>
3 #include <libc/unconst.h>
4
5 char *
6 strpbrk(const char *s1, const char *s2)
7 {
8 const char *scanp;
9 int c, sc;
10
11 while ((c = *s1++) != 0)
12 {
13 for (scanp = s2; (sc = *scanp++) != 0;)
14 if (sc == c)
15 return unconst(s1 - 1, char *);
16 }
17 return 0;
18 }