1
Files
lecture-operating-system-de…/c_os/user/MyLib.cc
2022-07-14 13:35:26 +02:00

8 lines
199 B
C++

#include "user/MyLib.h"
void mmem::memset(char* destination, char value, unsigned int bytes) {
for (unsigned int byte = 0; byte < bytes; ++byte) {
*(destination + byte) = value;
}
}