memmem(3pub)

memmem3pub

Search for memory block inside another memory block

Usage

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

Overview

memmem searches for the pattern pat (length patsize bytes) in the memory block v (length size bytes).

Return value

memmem returns a pointer to the first byte of the first occurrence it finds, or NULL if it doesn't find any occurrence.

Releases

16 releases since Debian 1.2 (Rex); the text changed 5 times.

  1. 1.2–1.3
  2. 2.0–2.2
  3. 3.0
  4. 3.1–6.0
  5. 7–8
  6. 9–13

Author

Lars Wirzenius ([email protected])

From publib-dev 0.40-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.