aboutsummaryrefslogtreecommitdiff
path: root/examples/hello_world_c_zig/src/foo.zig
blob: 464eaddfe99b4d75dd5e233e164c117660356d15 (plain)
1
2
3
4
5
6
7
8
const warn = @import("std").debug.warn;

extern fn baz() void;

export fn foo() void {
    warn("zig called from c!\n");
    baz();
}