Example code: C code working with Zig functions.
parent
32fd31934c
commit
d585ffb8ee
|
@ -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;
|
||||||
|
}
|
Reference in New Issue