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

 NAME

strrchr - string scanning operation

 SYNOPSIS



#include <string.h>

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

 DESCRIPTION

The strrchr() function locates the last occurrence of c (converted to a char) in the string pointed to by s. The terminating null byte is considered to be part of the string.

 RETURN VALUE

Upon successful completion, strrchr() returns a pointer to the byte or a null pointer if c does not occur in the string.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

strchr(), <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 ]