shithub: scc

ref: c970c0f3b3510ff26976834a880977b5bdc1237d
dir: /doc/man3/strchr.3/

View raw version
.TH strchr 3
.SH NAME
strchr - find character in string
.SH SYNOPSIS
#include <string.h>

char *strchr(const char *s, int c)
.SH DESCRIPTION
The
.BR strchr ()
function locates the first occurence of
.I c
(converted to a char)
in the string pointed to by
.IR s .
The terminating null character is considered to be part of the string.
.SH RETURN VALUE
The
.BR strchr ()
function shall return a pointer to the located character
or a null pointer if the character does not occur in the string.
.SH STANDARDS
ISO/IEC 9899:1999 Section 7.21.5.2