bug fixes

This commit is contained in:
2026-07-12 10:13:19 +02:00
parent cff9e9500f
commit b0c716537e
14 changed files with 847 additions and 106 deletions
+15
View File
@@ -0,0 +1,15 @@
import "@ffi/c"
import "@std/mem"
main func() void {
allocator :: mem.c_allocator
data :: mem.alloc(u8, allocator, 24) catch |_| {
_ = c.printf("Failed to allocate memory\n")
return _
}
defer mem.free(u8, allocator, data)
data[0] = 'H'
_ = c.printf("data[0] = %s\n", data[0])
}