mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-08 20:55:01 +00:00
12 lines
177 B
C
12 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;
|
||
|
}
|