diff options
Diffstat (limited to 'meson/test cases/rust/13 external c dependencies/c_accessing_zlib.c')
-rw-r--r-- | meson/test cases/rust/13 external c dependencies/c_accessing_zlib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/rust/13 external c dependencies/c_accessing_zlib.c b/meson/test cases/rust/13 external c dependencies/c_accessing_zlib.c new file mode 100644 index 000000000..358b98998 --- /dev/null +++ b/meson/test cases/rust/13 external c dependencies/c_accessing_zlib.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <string.h> +#include <zlib.h> + +void c_accessing_zlib(void) { + struct z_stream_s zstream; + printf("Hello from C!\n"); + memset(&zstream, 0, sizeof(zstream)); + inflateInit(&zstream); +} |