strrchr
locate character in string
You're viewing an older version of this page (#3293). View the current version.
NAME
strrchr
INTERFACE
#include <string.h> char strrchr ( const char *s, int c )
DESCRIPTION
The strrchr function locates the last occurrence of \c c (converted to a char) in the string \c s. If \c c is '<span class="Qlq">\\0</span>', strrchr locates the terminating '<span class="Qlq">\\0</span>'.
RETURN VALUES
The strrchr function returns a pointer to the character, or a null pointer if \c c does not occur anywhere in \c s.
SEE ALSO
memchr (3) , strchr (3) , strcspn (3) , strpbrk (3) , reference:strsep (3) , strspn (3) , strstr (3) , strtok (3)
STANDARDS
The strrchr function conforms to