STRSTR - obtain first substring of string.
(ANSI Standard)
Usage:
#include <string.h>
ptr = strstr( s, subs );
Where:
- const char *s;
- points to the string to be scanned.
- const char *subs;
- points to the (sub)string to scan for.
- char *ptr;
- points to the first occurrence of the substring in the
given string. If the substring is not found, this will be
a null pointer.
Description:
"strstr" returns a pointer to the first occurrence
of a substring within another string.
See Also:
expl c lib strrstr
Copyright © 1996, Thinkage Ltd.