Example code: C code working with Zig functions.
This commit is contained in:
parent
32fd31934c
commit
d585ffb8ee
13
zig-impl/drop/src/main.c
Normal file
13
zig-impl/drop/src/main.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user