mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-10 00:50:00 +00:00
12 lines
486 B
Diff
12 lines
486 B
Diff
--- exercises/096_hello_c.zig 2025-08-15 15:17:57.839348063 +0200
|
|
+++ answers/096_hello_c.zig 2026-04-03 13:09:26.195163128 +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});
|