memchr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memchr(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the memchr(9) page β€” yes, the manual name is literally memchr(9), and this is the Kernel API Manual section. Let’s get into it 🫢✨


✨ NAME ✨

memchr β€” find a character in an area of memory πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void * memchr (const void *s , int c , size_t n );

🌸 ARGUMENTS 🌸

  • s β€” the memory area 🧚
  • c β€” the byte to search for πŸ”
  • n β€” the size of the area πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea β˜•: it returns the address of the first occurrence of c, or NULL if c is not found. that’s it, that’s the vibe β€” no cap πŸ’€βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./lib/string.c β€” and the whole iconic friend group πŸ’–:


made with πŸ’– from source/version ./lib, dated October 2026, and the memchr(9) manual β€” bye bestie, slay your memory searches πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from