Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libgcc/memset.c
2023-03-06 14:48:14 +01:00

11 lines
177 B
C

/* Public domain. */
#include <stddef.h>
void *
memset (void *dest, int val, size_t len)
{
unsigned char *ptr = dest;
while (len-- > 0)
*ptr++ = val;
return dest;
}