summaryrefslogtreecommitdiffstatshomepage
path: root/patches
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-16 18:33:06 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-02-16 18:33:06 +0100
commitbb956254774ed022f29c70e98f7ca95c28f2c86f (patch)
tree644145ad4bf822bbf2c85bdf78d9552bae52eb80 /patches
parentdce731a0ece693a06615e8f8f1ac7ee0db911360 (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.patch6
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);