SilverScreen Solid Modeler

strstr

strstr

Previous topic Next topic  

strstr

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

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

 

char *s1;         /* a string */

char *s2;         /* search string */

 

 




Synopsis

#include "string.h"

 

The strstr function searches string s1 for the first occurrence of string s2 .

 

 

Parameters

s1 and s2 are null-terminated strings.

 

 

Return Value

strstr returns a pointer to the first occurrence of s1 in s2 , if one exists, and NULL otherwise.

 

 

See Also

strchr