Files
RockOS/kernel/lib/memory.h

19 lines
441 B
C
Raw Normal View History

2026-06-24 13:30:23 -05:00
#ifndef KMEMORY_H
#define KMEMORY_H
#include <stdint.h>
#include <stddef.h>
void memcpy(const void* src, void* dst, size_t sz);
void memset(const uint8_t* dst, uint8_t val, size_t sz);
2026-06-24 13:30:23 -05:00
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);
2026-06-24 13:30:23 -05:00
int strlen(const char* str);
2026-06-30 00:03:21 -05:00
char* strcpy(char* dest, const char* src);
2026-06-24 13:30:23 -05:00
2026-06-25 14:03:35 -05:00
void kgrow(size_t pages);
void* kalloc(size_t sz);
2026-07-01 20:00:22 -05:00
void kfree(void* ptr);
2026-06-24 13:30:23 -05:00
#endif