memcchr(9freebsd)

memcchr9freebsd

Locate the complement of a byte in byte string

Usage

#include <sys/libkern.h>

void *

memcchr(const void *b, int c, size_t len);

Overview

The memcchr() function locates the first occurrence of a byte unequal to c (converted to an unsigned char) in string b.

Return values

The memcchr() function returns a pointer to the byte located, or NULL if no such byte exists within len bytes.

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10
  4. 11–13

History

The memcchr() function first appeared in FreeBSD 10.0.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.