added C math exercise

This commit is contained in:
Chris Boesch 2023-02-18 23:39:21 +01:00
parent 36d3f3f07b
commit 393a4fe41e
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.