This commit is contained in:
2026-06-08 22:10:54 +03:00
parent 847c5c8afa
commit b578a520b1

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;
}