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