www.delorie.com/djgpp/doc/libc-2.01/libc_622.html   search  
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.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997