diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 2538248..0000000 --- a/src/main.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <aplwc.h> - -int -main(void) -{ - struct aplwc *aplwc; - uint8_t *data; - int ret; - - data = malloc(APLWC_MIN_MEM); - if(data == NULL){ - fprintf(stderr, "Couldn't allocate memory\n"); - return 1; - } - - ret = aplwc_new(&aplwc, data, APLWC_MIN_MEM); - if(ret){ - fprintf(stderr, "Couldn't create new aplwc instance: %s\n", aplwc_errstr(aplwc)); - return 1; - } - - ret = aplwc_destroy(aplwc); - if(ret){ - fprintf(stderr, "Couldn't destroy the aplwc instance: %s\n", aplwc_errstr(aplwc)); - return 1; - } - - free(data); - - return 0; -} |