Obsolete
/
libipc-old
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
libipc-old/zig-impl/drop/src/main.c

25 lines
397 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int ret = 0;
printf ("Init context.\n");
void *ctx = NULL;
ret = ipc_context_init (&ctx);
if (ret != 0) {
printf ("Cannot init context.\n");
return 1;
}
// TODO: do stuff
printf ("Deinit context\n");
ipc_context_deinit (ctx);
printf ("Context deinit.\n");
free(ctx);
printf ("Context completely freed.\n");
return 0;
}