Initial commit

This commit is contained in:
2024-10-11 22:21:32 +02:00
commit 1bdd01e9b2
38 changed files with 11363 additions and 0 deletions

6
core/string_helpers.jai Normal file
View File

@@ -0,0 +1,6 @@
to_temp_c_string :: (s: string) -> *u8 {
result : *u8 = alloc(s.count + 1,, allocator=temp);
memcpy(result, s.data, s.count);
result[s.count] = 0;
return result;
}