Go to the first, previous, next, last section, table of contents.


strstr

Syntax

#include <string.h>

char *strstr(const char *s1, const char *s2);

Description

This function finds the first occurrence of s2 in s1.

Return Value

A pointer within s1, or NULL if s2 wasn't found.

Portability

ANSI, POSIX

Example

if (strstr(command, ".exe"))
  do_exe();


Go to the first, previous, next, last section, table of contents.