The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

strchr - string scanning operation

 SYNOPSIS



#include <string.h>

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

 DESCRIPTION

The strchr() function locates the first occurrence of c (converted to an unsigned char) in the string pointed to by s. The terminating null byte is considered to be part of the string.

 RETURN VALUE

Upon completion, strchr() returns a pointer to the byte, or a null pointer if the byte was not found.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

strrchr(), <string.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]