Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->strstr()

Summary

#include <string.h>

    
char *strstr(const char *string1,const char* string2);Find string 2 in string1

Parameters

    
string1String scanned
string2String searched for


Description

This function searches for the first occurrence of string2 in string1.


Return Value

The function returns a pointer to string2 in string1 if it finds string2 otherwise NULL is returned.