Files
coven/core/string_helpers.jai
2024-10-11 22:21:32 +02:00

7 lines
180 B
Plaintext

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