strchr


Search for a character from the start of the string

[Classification]

Standard library

[Syntax]

#include <string.h>

char __near * __far strchr(const char __near *s, int c);

char __far * __far _COM_strchr_f(const char __far *s, int c);

[Return value]

Returns a pointer indicating the character that has been found. If c does not appear in this character string, the null pointer is returned.

[Description]

This function obtains the position at which a character the same as c appears in the character string indicated by s. The null character (\0) indicating termination is regarded as part of this character string.