strchr()

locate character in string 

Function


SYNOPSIS

#include <string.h>

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


DESCRIPTION

The strchr() function locates the first occurrence of c, cast to char, in the string pointed to by s. The terminating null character is considered a part of the string.


PARAMETERS

s 

Points to the string to be searched.

c 

Is the character to search for in string s.


RETURN VALUES

The strchr() function returns a pointer to the first occurrence of character c located within s. If character c does not occur in the string, strchr() returns a null pointer.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
strcspn(), strpbrk(), strrchr(), strspn(), strstr()


PTC MKS Toolkit 10.3 Documentation Build 39.