memset16(9)
π memset16(9) π
okay so bestie, welcome to the Kernel API Manual entry for memset16 β yes that's the manual page name right there in the title, we're being official today β¨
πΈ NAME πΈ
memset16 β fill a memory area with a uint16_t π
β¨ SYNOPSIS β¨
void * memset16 (uint16_t *s , uint16_t v , size_t count );
like, that's the whole vibe. short. sweet. iconic. π
π¦ ARGUMENTS π¦
sβ pointer to the start of the area π this is where the magic goes, bestievβ the value you wanna fill the area with πΈcountβ the number of values to store β
π DESCRIPTION π
So here's the tea: it differs from memset in that it fills with a uint16_t instead of a byte. that's literally the whole plot twist π«Ά
β οΈ reminder bestie β οΈcountis the number ofuint16_ts to store, not the number of bytes. do not come for me if you get this wrong, i warned you ππ
π SEE ALSO π
Kernel file ./lib/string.c β and the whole friend group: strncasecmp(9), stpcpy(9), strcmp(9), strncmp(9), strchr(9), strchrnul(9), strnchrnul(9), strrchr(9), strnchr(9), strspn(9), strcspn(9), strpbrk(9), strsep(9), memset(9), memset32(9), memset64(9), memcpy(9), memmove(9), memcmp(9), bcmp(9), memscan(9), strstr(9), strnstr(9), memchr(9), memchr_inv(9) π¦β¨
and that's the whole page, no cap π
signing off from ./lib with the October 2026 edition of memset16(9) β slay, stay hydrated, and always count your uint16_ts πππ
π¦ 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