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 1a37c63abe
commit 236b5f2c5c
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);