DOKK / manpages / debian 11 / publib-dev / memrmem.3pub.en
MEMRMEM(3pub) C Programmer's Manual MEMRMEM(3pub)

memrmem - find last occurrence of memory block within another memory block

#include <publib.h>
void *memrmem(const void *v, size_t size,

const void *pat, size_t patsize);

memrmem finds the last occurrence of memory block pat within memory block v.

memrmem returns a pointer to the first byte of the match, if it finds any, or a null pointer if there are no matches.

publib(3), memmem(3), strstr(3), strrstr(3)

Lars Wirzenius (lars.wirzenius@helsinki.fi)

C Programmer's Manual Publib