SilverScreen Solid Modeler

strchr

strchr

Previous topic Next topic  

strchr

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

char *strchr( char *s, int ch )

 

char *s;          /* a string */

int   ch;         /* search character */

 

 




Synopsis

#include "string.h"

 

The strchr function searches string s for the first occurrence of ch.

 

 

Parameters

s is a null-terminated string. ch is a character.

 

 

Return Value

strchr returns a pointer to the first ccurrence of ch , if one exists, and NULL otherwise.

 

 

See Also

strrchr