Name

strchrnul — Find and return a character in a string, or end of string

Synopsis

char * strchrnul (const char * s,
 int c);
 

Arguments

const char * s

The string to be searched

int c

The character to search for

Description

Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.