diff options
author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-02-16 18:33:06 +0100 |
---|---|---|
committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2023-02-16 18:33:06 +0100 |
commit | bb956254774ed022f29c70e98f7ca95c28f2c86f (patch) | |
tree | 644145ad4bf822bbf2c85bdf78d9552bae52eb80 /patches | |
parent | dce731a0ece693a06615e8f8f1ac7ee0db911360 (diff) |
try 'write' that works on mac, but I didn't know if it works on windows
Diffstat (limited to 'patches')
-rw-r--r-- | patches/patches/093_hello_c.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/patches/093_hello_c.patch b/patches/patches/093_hello_c.patch index a0f62c2..60eeaf0 100644 --- a/patches/patches/093_hello_c.patch +++ b/patches/patches/093_hello_c.patch @@ -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); |