ubuntu-buildroot/output/build/host-gawk-5.2.0/missing_d/memset.c

21 lines
265 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/*
* memset --- initialize memory
*
* We supply this routine for those systems that aren't standard yet.
*/
void *
memset(dest, val, l)
void *dest;
int val;
size_t l;
{
char *ret = dest;
char *d = dest;
while (l--)
*d++ = val;
return ((void *) ret);
}