mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
10 lines
175 B
C
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;
|
|
}
|