memmem
search for memory block inside another memory block
- Provided by: publib-dev (Version: 0.40-3build1)
- Source: publib
- Report a bug
search for memory block inside another memory block
#include <publib.h>
void *memmem(const void *v, size_t size,
const void *pat, size_t patsize);
memmem searches for the pattern pat (length patsize bytes) in the memory block v (length size bytes).
memmem returns a pointer to the first byte of the first occurrence it finds, or NULL if it doesn't find any occurrence.
Lars Wirzenius (lars.wirzenius@helsinki.fi)