aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 00:00:08 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 00:00:08 +0100
commit84f4b4a9c7a780859e21d6f04e1152ae66fb30e9 (patch)
treea0b5874ccb759581a769e30ff83fedfaa87c5d5c
parent23f2cc88d268ecc1ed0cd5f70a315b02f94ff21b (diff)
small improvements in hello_c
-rw-r--r--exercises/093_hello_c.zig2
-rw-r--r--patches/patches/093_hello_c.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/093_hello_c.zig b/exercises/093_hello_c.zig
index 368a918..80b1cb7 100644
--- a/exercises/093_hello_c.zig
+++ b/exercises/093_hello_c.zig
@@ -54,7 +54,7 @@ pub fn main() void {
//
// In this exercise we use 'write' to output 17 chars,
// but something is missing...
- const c_res = write(2, "Hello C from Zig!", 17);
+ const c_res = ???write(2, "Hello C from Zig!", 17);
// let's see what the result from C is:
std.debug.print(" - C result ist {d} chars written.\n", .{c_res});
diff --git a/patches/patches/093_hello_c.patch b/patches/patches/093_hello_c.patch
index 60eeaf0..df9fbfb 100644
--- a/patches/patches/093_hello_c.patch
+++ b/patches/patches/093_hello_c.patch
@@ -1,4 +1,4 @@
57c57
-< const c_res = write(2, "Hello C from Zig!", 17);
+< const c_res = ???write(2, "Hello C from Zig!", 17);
---
> const c_res = c.write(2, "Hello C from Zig!", 17);