memrchr

Name

memrchr -- scan memory for a character

Synopsis

#include <string.h>

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

Description

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