* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)strcspn.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
* Span the complement of string s2.
register const char *p
, *spanp
;
* Stop as soon as we find any character from s2. Note that there
* must be a NUL in s2; it suffices to stop when we find that, too.
if ((sc
= *spanp
++) == c
)