Initial commit

This commit is contained in:
2026-06-13 19:45:36 +10:00
commit 284b08b12a
56 changed files with 1546 additions and 0 deletions

20
src/New/String.c Normal file
View File

@@ -0,0 +1,20 @@
#include "../../include/ground.h"
GroundString _GroundNewString(const char* in) {
size_t len = strlen(in);
GroundString string = {
.len = len,
.cstr = malloc(sizeof(len) + 1)
};
if (string.cstr == NULL) {
Ground.Flags.error = true;
string.len = 0;
return string;
}
strcpy(string.cstr, in);
return string;
}