3 <<strstr>>---find string segment
10 char *strstr(const char *<[s1]>, const char *<[s2]>);
14 char *strstr(<[s1]>, <[s2]>)
19 Locates the first occurence in the string pointed to by <[s1]> of
20 the sequence of characters in the string pointed to by <[s2]>
21 (excluding the terminating null character).
24 Returns a pointer to the located string segment, or a null
25 pointer if the string <[s2]> is not found. If <[s2]> points to
26 a string with zero length, the <[s1]> is returned.
31 <<strstr>> requires no supporting OS subroutines.
40 _DEFUN (strstr
, (searchee
, lookfor
),
41 _CONST
char *searchee _AND
48 return (char *) searchee
;
60 return (char *) searchee
;
63 if (lookfor
[i
] != searchee
[i
])