Rev 8793 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9765 | turbocat | 1 | /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
2 | #include "unconst.h" |
||
3 | #include |
||
4 | |||
5 | char* strpbrk(const char* s1, const char* s2) |
||
6 | { |
||
7 | const char* scanp; |
||
8 | int c, sc; |
||
9 | |||
10 | while ((c = *s1++) != 0) { |
||
11 | for (scanp = s2; (sc = *scanp++) != 0;) |
||
12 | if (sc == c) |
||
13 | return unconst(s1 - 1, char*); |
||
14 | } |
||
15 | return 0; |
||
16 | } |