home *** CD-ROM | disk | FTP | other *** search
- @node strstr, string
- @subheading Syntax
-
- @example
- #include <string.h>
-
- char *strstr(const char *s1, const char *s2);
- @end example
-
- @subheading Description
-
- This function finds the first occurrence of @var{s2} in @var{s1}.
-
- @subheading Return Value
-
- A pointer within @var{s1}, or @code{NULL} if @var{s2} wasn't found.
-
- @subheading Example
-
- @example
- if (strstr(command, ".exe"))
- do_exe();
- @end example
-
-