mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-10-13 21:25:07 -07:00
fixing minor bugs with single unit compilation in gcc with flags on
This commit is contained in:
9
kernel/types.c
Normal file
9
kernel/types.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "types.h"
|
||||
|
||||
// Example: Basic memory helper (unnecessary if libc exists)
|
||||
void *memset(void *dest, int value, size_t len) {
|
||||
unsigned char *ptr = (unsigned char *)dest;
|
||||
while (len-- > 0)
|
||||
*ptr++ = (unsigned char)value;
|
||||
return dest;
|
||||
}
|
Reference in New Issue
Block a user