From 286631389630db2c00b059f4c993fbde60b5188d Mon Sep 17 00:00:00 2001 From: Chris Boesch <48591413+chrboesch@users.noreply.github.com> Date: Sun, 19 Feb 2023 00:00:08 +0100 Subject: [PATCH] small improvements in hello_c --- exercises/093_hello_c.zig | 2 +- patches/patches/093_hello_c.patch | 2 +- 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);