2
* $Id: strstr.c,v 1.5 2010-07-14 01:55:05-07 bll Exp $
3
* $Source: /home/bll/DI/di/RCS/strstr.c,v $
4
* Copyright 1994-2010 Brad Lanam, Walnut Creek, CA
28
strstr (const char *buff, const char *srch)
39
if (srch == (char *) NULL) { return p; }
42
for (; (p = strchr (p, *srch)) != (char *) NULL; p++)
44
if (strncmp (p, srch, len) == 0)