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