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.