#include <string.h> char *strchr(const char *s, int c);
This function returns a pointer to the first occurrence of c in
s. Note that if c is NULL
, this will return a
pointer to the end of the string.
A pointer to the character, or NULL
if it wasn't found.
ANSI, POSIX
char *slash = strchr(filename, '/');
Go to the first, previous, next, last section, table of contents.