093_hello_c.patch 486 B

1234567891011
  1. --- exercises/093_hello_c.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/093_hello_c.zig 2023-10-05 20:04:07.262770750 +0200
  3. @@ -54,7 +54,7 @@
  4. //
  5. // In this exercise we use 'write' to output 17 chars,
  6. // but something is still missing...
  7. - const c_res = write(2, "Hello C from Zig!", 17);
  8. + const c_res = c.write(2, "Hello C from Zig!", 17);
  9. // let's see what the result from C is:
  10. std.debug.print(" - C result is {d} chars written.\n", .{c_res});