From d585ffb8ee44675e334a40fc445c3410289eb85a Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 13 Jan 2023 02:06:19 +0100 Subject: [PATCH] Example code: C code working with Zig functions. --- zig-impl/drop/src/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 zig-impl/drop/src/main.c diff --git a/zig-impl/drop/src/main.c b/zig-impl/drop/src/main.c new file mode 100644 index 0000000..690feb9 --- /dev/null +++ b/zig-impl/drop/src/main.c @@ -0,0 +1,13 @@ +#include + +int main(void) { + int ret = someipc(20,10); + printf("hello %d\n", ret); + + void *somestructure = NULL; + some_struct_bidouillage_init(&somestructure); + int value = some_struct_bidouillage_update(&somestructure); + printf("value %d\n", value); + + return 0; +}