try 'write' that works on mac, but I didn't know if it works on windows

This commit is contained in:
Chris Boesch
2023-02-16 18:33:06 +01:00
parent dce731a0ec
commit bb95625477
2 changed files with 8 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
63c63
< const c_res = fprintf(stderr, "Hello C from Zig!");
57c57
< const c_res = write(2, "Hello C from Zig!", 17);
---
> const c_res = c.fprintf(stderr, "Hello C from Zig!");
> const c_res = c.write(2, "Hello C from Zig!", 17);