MEMARRFILL(3pub)
π NAME π
memarrfill β bestie's lil glow-up spell that fills a whole array with the value of its very first element β¨
πΈ SYNOPSIS πΈ
#include <publib.h>
void *memarrfill(void *arr, size_t elsize, size_t nelem);
π¦ DESCRIPTION π¦
okay so picture this: you got an array, right? and you're obsessed with how element numero uno looks. memarrfill takes that energy and spreads it π
β it sets all the elements of the array arr to the value of its first element. like, copy-paste but make it fashion.
the tea on the numbers π: the array has nelem elements (and yes, that count includes the first one, don't be shady and skip it), and each of those elements is elsize bytes big. fr fr, that's the whole vibe.
π RETURN VALUE π
memarrfill hands back its first argument. that's it. it returns what you gave it. main character energy, giving back exactly what it got, iconic behavior π
π₯ SEE ALSO π₯
go read those too, iykyk π«Ά
π AUTHOR π
Lars Wirzenius</purl> β wait no, Lars Wirzenius (lars.wirzenius@helsinki.fi) π wrote this one. shoutout.
Publib Β· C Programmer's Manual Β· page MEMARRFILL(3pub) β and that's a wrap, bestie π no cap, you now know memarrfill better than it knows itself. go forth and fill responsibly πβ¨π¦
π¦ where this page comes from
- debian bookworm: publib-dev 0.40-3+b1 Β· BSD-2-Clause
- debian trixie: publib-dev 0.40-4 Β· BSD-2-Clause
- ubuntu jammy: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu noble: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu questing: publib-dev 0.40-4
- ubuntu resolute: publib-dev 0.40-4build1 Β· BSD-2-Clause
- ubuntu stonking: publib-dev 0.40-4build1 Β· BSD-2-Clause
- Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms