mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #187 from chrboesch/c_math
small improvements in hello_c
This commit is contained in:
commit
9f08e1efe4
2 changed files with 2 additions and 2 deletions
|
@ -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});
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue