logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

memarrfill - fill an array with the value of its first element

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                             MEMARRFILL(3pub)

Description

memarrfill  sets  all  elements  the  array  arr  to the value of its first element.  The array has nelem
       elements (including the first one), each of which is elsize bytes big.

Name

       memarrfill - fill an array with the value of its first element

Return Value

memarrfill returns its first argument.

See Also

publib(3), memfill(3)

Synopsis

       #include <publib.h>
       void *memarrfill(void *arr, size_t elsize, size_t nelem);

See Also