strrchr[reverse search for character in string]

Contents|Index|Previous|Next

strrchr
[reverse search for character in string]

SYNOPSIS 
#include <string.h> 
char * strrchr(const char *string, int c); 

DESCRIPTION
strrchr finds the last occurrence of c (converted to a char) in the string pointed to by string (including the terminating null character).

RETURNS
Returns a pointer to the located character, or a null pointer if
c does not occur in string.

COMPLIANCE
strrchr is ANSI C.

strrchr requires no supporting OS subroutines.

 
© 2005 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Contact