[headers 12] Add kaleido_manager.h, move various protos to headers (#2174)

* [headers 12] add kaleido_manager.h, move various protos to headers

* BSS

* bss
This commit is contained in:
Dragorn421
2024-09-11 10:17:47 +02:00
committed by GitHub
parent 5441559b30
commit cbf9eacf42
12 changed files with 66 additions and 50 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
#include "global.h"
#include "string.h"
/**
* memmove: copies `len` bytes from memory starting at `src` to memory starting at `dest`.
@@ -12,8 +12,8 @@
* @return dest
*/
void* memmove(void* dest, const void* src, size_t len) {
u8* d = dest;
const u8* s = src;
char* d = dest;
const char* s = src;
if (d == s) {
return dest;
+2 -2
View File
@@ -1,4 +1,4 @@
#include "global.h"
#include "string.h"
/**
* memset: sets `len` bytes to `val` starting at address `dest`.
@@ -12,7 +12,7 @@
* @return dest
*/
void* memset(void* dest, int val, size_t len) {
u8* ptr = dest;
char* ptr = dest;
while (len--) {
*ptr++ = val;