Archived
3
0

Example code: C code working with Zig functions.

This commit is contained in:
Philippe Pittoli 2023-01-13 02:06:19 +01:00
parent 32fd31934c
commit d585ffb8ee

13
zig-impl/drop/src/main.c Normal file
View File

@ -0,0 +1,13 @@
#include <stdio.h>
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;
}