Chapter 11: Predefined Macros
strchr
strchr
Function
Locate first occurrence of a character in a string
Synopsis
char *strchr (str1, byte_value)
char *str1;
char byte_value;
Description
The strchr macro returns a pointer to the first occurrence of the character
byte_value in the string str1, if byte_value occurs in str1.
Diagnostics
If the character byte_value is not found, strchr returns a NULL pointer. For
debugger variables, -1 (0xFFFFFFFF) is returned if byte_value does not occur.
472