ack/lang/cem/libcc/gen/strpbrk.c

15 lines
227 B
C
Raw Normal View History

1994-06-24 14:02:31 +00:00
/* $Id$ */
1987-01-27 15:57:55 +00:00
char *
strpbrk(string, brk)
register char *string, *brk;
{
register char *s1;
while (*string) {
for (s1 = brk; *s1 && *s1 != *string; s1++) /* nothing */ ;
if (*s1) return string;
string++;
}
return 0;
}