1
zero-epwing/main.c

28 lines
493 B
C
Raw Normal View History

2016-10-29 23:58:09 +00:00
#include <stdio.h>
2016-10-30 00:38:50 +00:00
#include <eb/eb.h>
#include <eb/error.h>
2016-10-30 01:27:05 +00:00
int dump(const char path[]) {
(void) path;
2016-10-30 00:38:50 +00:00
2016-10-30 01:27:05 +00:00
const EB_Error_Code error_code = eb_initialize_library();
2016-10-30 00:38:50 +00:00
if (error_code != EB_SUCCESS) {
2016-10-30 01:27:05 +00:00
perror("error: failed to initialize eb\n");
return 1;
2016-10-30 00:38:50 +00:00
}
2016-10-29 23:58:09 +00:00
2016-10-30 01:27:05 +00:00
2016-10-30 00:38:50 +00:00
eb_finalize_library();
2016-10-30 01:27:05 +00:00
return 0;
}
int main(int argc, char *argv[]) {
if (argc != 2) {
fprintf(stderr, "usage: %s path\n", argv[0]);
return 1;
}
return dump(argv[1]);
2016-10-29 23:58:09 +00:00
}