memchr_inv(9)
πΈ memchr_inv β Kernel API Manual πΈ
okay bestie, welcome to the memchr_inv(9) page π
this is the kernel API manual vibe, and we're about to find the one character that is not like the others. periodt.
β¨ NAME β¨
memchr_inv β find an unmatching character in an area of memory. lowkey iconic.
π¦ SYNOPSIS π¦
void * memchr_inv (const void *start , int c , size_t bytes );
π ARGUMENTS π
startβ the memory area. like, the buffer we're checking out πcβ find a character other thanc. yep, we're looking for the odd one out πbytesβ the size of the area. how many bytes we get to search, no cap.
π₯ DESCRIPTION π₯
returns the address of the first character other than c, or NULL if the whole buffer contains just c. that's the whole plot twist π
π SEE ALSO π
Kernel file ./tools/lib/string.c β and the whole squad: memdup(9), strtobool(9), strlcpy(9), skip_spaces(9), strim(9), strreplace(9). iykyk π
okay that's the whole page, bestie! π«Ά source/version info: ./tools/lib Β· date: October 2026 Β· page: memchr_inv(9) β mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms