blob: e18fd2a2dbbbd6ec482f2ff1eb919af7c8518fb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <sys/types.h>
#include <string.h>
char *strpbrk(const char *s, const char *accept) {
register int i,l=strlen(accept);
for (; *s; s++)
for (i=0; i<l; i++)
if (*s == accept[i])
return (char*)s;
return 0;
}
|