* 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
[] = "@(#)strstr.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
* Find the first occurrence of find in s.
register const char *s
, *find
;
if ((c
= *find
++) != 0) {
} while (strncmp(s
, find
, len
) != 0);