Go to the first, previous, next, last section, table of contents.


strrchr

Syntax

#include <string.h>

char *strrchr(const char *s1, int c);

Description

This function finds the last occurrence of c in s1.

Return Value

A pointer to the last match, or NULL if the character isn't in the string.

Portability

ANSI, POSIX

Example

char *last_slash = strrchr(filename, '/');


Go to the first, previous, next, last section, table of contents.