welibc
A clear, secure, and well documented standard C library
|
Defines the strrchr function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
char * | strrchr (const char *s, int c) |
Locate the last occurrence of a character in a string. More... | |
Defines the strrchr function.
Definition in file strrchr.c.
char* strrchr | ( | const char * | s, |
int | c | ||
) |
Locate the last occurrence of a character in a string.
*s | String being searched |
c | Character to find |
The strrchr function locates the last occurrence of c (converted to a char) in the string pointed to by s. The terminating null character is considered to be a part of the string.
NULL | The character does not occur in the string |
Definition at line 53 of file strrchr.c.
References NULL, and strlen().