Update file IO API

This commit is contained in:
2025-12-14 01:42:45 +00:00
parent e9aebeccbf
commit b51482057a
11 changed files with 85 additions and 87 deletions

View File

@@ -7,10 +7,10 @@ TestFuncResult test_str8_array(void) {
Str8 expected[] = {wapp_str8_lit("Hello"), wapp_str8_lit("Hi"), wapp_str8_lit("Bye")};
Str8 *array = wapp_array(Str8, wapp_str8_lit("Hello"), wapp_str8_lit("Hi"), wapp_str8_lit("Bye"));
result = wapp_array_count(Str8, array) == 3 && wapp_array_capacity(Str8, array) == 8;
result = wapp_array_count(array) == 3 && wapp_array_capacity(array) == 8;
Str8 *item;
u64 count = wapp_array_count(Str8, array);
u64 count = wapp_array_count(array);
u64 index = 0;
b8 running = true;
while (running) {