#include <stdio.h>
#include <stdbool.h>
#include <inflate.h>
int main(int argc, char *argv[]) {
if (argc != 2) {
fprintf(stderr, "usage: inflate [file]\n");
return 1;
}
char *fname = argv[1];
FILE *fp = fopen(fname, "rb");
if (!fp) {
fprintf(stderr, "error: file not found\n");
return 1;
}
inflate(fp, fname);
fclose(fp);
return 0;
}
-
Mike Iovine authored97c9a53e