diff options
Diffstat (limited to 'zig-c-interop/main.zig')
| -rw-r--r-- | zig-c-interop/main.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zig-c-interop/main.zig b/zig-c-interop/main.zig new file mode 100644 index 0000000..8d16cd1 --- /dev/null +++ b/zig-c-interop/main.zig @@ -0,0 +1,9 @@ +const print = @import("std").debug.print; + +const billy = @cImport({ + @cInclude("billy.c"); +}); + +pub fn main() void { + print("Billy says 2+4={d}\n", .{billy.sum(2, 4)}); +} |
