#include <string.h> char *strrchr(const char *s1, int c);
This function finds the last occurrence of c
in s1
.
A pointer to the last match, or NULL
if the character isn't in
the string.
ANSI, POSIX
char *last_slash = strrchr(filename, '/');
Go to the first, previous, next, last section, table of contents.