aboutsummaryrefslogtreecommitdiff
path: root/examples/hello_world_c_zig/src/main.c
blob: aeaeae4fc79f917e9f71fba3fe2acb9406a5b218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <zig/src/foo.h>

void baz()
{
    printf("c called from zig!\n");
}

int main(int argc, char **argv)
{
    printf("inside c\n");
    foo();
    return 0;
}