|
|
coherent
/*
* strpbrk.c
* ANSI 4.11.5.4.
* Search string for character.
*/
#include <string.h>
char *strpbrk(s1, s2) char *s1; char *s2;
{
register char *cp1, *cp2;
register char c1, c2;
for (cp1 = s1; c1 = *cp1; cp1++)
for (cp2 = s2; c2 = *cp2; cp2++)
if (c1 == c2)
return(cp1);
return (NULL);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.