memcchr(9) locate the complement of a byte in byte string

SYNOPSIS

In sys/libkern.h Ft void * Fn memcchr const void *b int c size_t len

DESCRIPTION

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

RETURN VALUES

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

HISTORY

The Fn memcchr function first appeared in Fx 10.0 .