Files
Upsilon/liba/src/memset.c
Romain Goyet 872efea4d1 Liba cleanup
2015-05-31 13:51:41 +02:00

10 lines
175 B
C

#include <string.h>
void * memset(void * b, int c, size_t len) {
char * destination = (char *)b;
while (len--) {
*destination++ = (unsigned char)c;
}
return b;
}