36cb297b57
This reverts commit 56f77cf071
.
oops
11 lines
224 B
C
Executable file
11 lines
224 B
C
Executable file
#include <string.h>
|
|
|
|
void * memset(void * buffer, int value, size_t size) {
|
|
unsigned char * buf = (unsigned char *) buffer;
|
|
|
|
for(size_t i = 0; i < size; i++) {
|
|
buf[i] = (unsigned char) value;
|
|
}
|
|
|
|
return buffer;
|
|
}
|