aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches/patches/093_hello_c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/patches/093_hello_c.patch')
-rw-r--r--patches/patches/093_hello_c.patch15
1 files changed, 11 insertions, 4 deletions
diff --git a/patches/patches/093_hello_c.patch b/patches/patches/093_hello_c.patch
index 60eeaf0..fe1f853 100644
--- a/patches/patches/093_hello_c.patch
+++ b/patches/patches/093_hello_c.patch
@@ -1,4 +1,11 @@
-57c57
-< const c_res = write(2, "Hello C from Zig!", 17);
----
-> const c_res = c.write(2, "Hello C from Zig!", 17);
+--- exercises/093_hello_c.zig 2023-10-03 22:15:22.125574535 +0200
++++ answers/093_hello_c.zig 2023-10-05 20:04:07.262770750 +0200
+@@ -54,7 +54,7 @@
+ //
+ // In this exercise we use 'write' to output 17 chars,
+ // but something is still missing...
+- const c_res = write(2, "Hello C from Zig!", 17);
++ const c_res = c.write(2, "Hello C from Zig!", 17);
+
+ // let's see what the result from C is:
+ std.debug.print(" - C result is {d} chars written.\n", .{c_res});