Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
2 | #include |
||
3 | #include |
||
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 | } |