memrchr

Name

memrchr -- scan memory for a character

Synopsis

#include <string.h>

void *memrchr(const void *s, int c, size_t n);

Description

The memrchr() function returns a pointer to the last occurrence of the character "c" in the first "n" characters of string "s".