logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                                MEMRMEM(3pub)

Description

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

Name

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

Return Value

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

See Also

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

Synopsis

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

See Also