This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <libk/mem.h> | |
| #include <stddef.h> | |
| #include <stdint.h> | |
| void memset(void *ptr, uint8_t value, size_t num) { | |
| uint8_t *newPtr = ptr; | |
| for (size_t i = 0; i < num; i++) { | |
| newPtr[i] = value; | |
| } | |
| } |