diff options
Diffstat (limited to 'lib/strpbrk.c')
| -rw-r--r-- | lib/strpbrk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/strpbrk.c b/lib/strpbrk.c new file mode 100644 index 0000000..9f39fc3 --- /dev/null +++ b/lib/strpbrk.c @@ -0,0 +1,10 @@ +#include "../ninitfeatures.h" + +char *strpbrk(const char *s, const char *accept) /*EXTRACT_INCL*/ { + register int i,l=str_len(accept); + for (; *s; s++) + for (i=0; i<l; i++) + if (*s == accept[i]) + return (char*)s; + return 0; +} |
