1

add some rudimentary memory manipulation functions

This commit is contained in:
churl
2022-05-09 14:02:30 +02:00
parent 333d5930a5
commit 27d8f13b5e
2 changed files with 31 additions and 0 deletions

7
c_os/lib/MyStdLib.cc Normal file
View File

@ -0,0 +1,7 @@
#include "MyStdLib.h"
void mymemset(char* destination, char value, unsigned int bytes) {
for (unsigned int byte = 0; byte < bytes; ++byte) {
*(destination + byte) = value;
}
}