Library: string.h Prototype: char * strchr(const char *string, int character); Syntax: int character='w'; char *string="red dwarf"; if(strchr(string, character)) puts("Character found");
index and rindex do the same as strchr
and strrchr but are non standard.
Top | Master Index | Keywords | Functions |