summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 00:10:08 +0100
committerGitHub <noreply@github.com>2023-02-19 00:10:08 +0100
commit9f08e1efe470d768be806eff9a322d8324972712 (patch)
treea0b5874ccb759581a769e30ff83fedfaa87c5d5c
parentf6a2356bea3ae61971c5f8f69308b3a80e9f78ee (diff)
parent84f4b4a9c7a780859e21d6f04e1152ae66fb30e9 (diff)
Merge pull request #187 from chrboesch/c_math
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);