Make a compiler.c stub #5

Merged
Blendi merged 4 commits from :main into main 2026-06-08 22:13:06 +02:00
Showing only changes of commit b578a520b1 - Show all commits

View File

@@ -1,7 +1,5 @@
#include "helper.h"
#include <string.h>
#include "types.h"
int noom_startswith(const char* str, const char* compare) {
@@ -59,7 +57,7 @@ void noom_safe_strcpy(char* buffer, noom_uint_t* pos, noom_uint_t buffer_size, c
char *noom_strndup(const char *s, const noom_uint_t len) {
char *whar = noom_alloc(len + 1);
if (whar == 0) return 0;
memcpy(whar, s, len);
noom_memcpy(whar, s, len);
whar[len] = '\0';
return whar;
}