added C math exercise

This commit is contained in:
Chris Boesch
2023-02-18 23:39:21 +01:00
parent 6353299cd6
commit 23f2cc88d2
4 changed files with 44 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ pub fn main() void {
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\n", .{c_res});
std.debug.print(" - C result ist {d} chars written.\n", .{c_res});
}
//
// Something must be considered when compiling with C functions.