added LIBC_SCCS condition for sccs ids
[unix-history] / usr / src / lib / libc / string / strpbrk.c
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* Sys 5 compat routine...
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)strpbrk.c 5.2 (Berkeley) 86/03/09";
#endif
char *
strpbrk(s, brk)
register char *s, *brk;
{
register char *p;
register c;
while (c = *s) {
for (p = brk; *p; p++)
if (c == *p)
return (s);
s++;
}
return (0);
}