C++ Programming/Code/Standard C Library/Functions/strchr

< C++ Programming < Code < Standard C Library < Functions

strchr

Syntax
#include <cstring>
char *strchr( const char *str, int ch );

The function strchr() returns a pointer to the first occurrence of ch in str, or NULL if ch is not found.

Related topics
strcat - strcmp - strcpy - strlen - strncat - strncmp - strncpy - strpbrk - strrchr -strspn - strstr - strtok
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.