| 103 | } |
| 104 | |
| 105 | int main(int argc, const char** argv) |
| 106 | { |
| 107 | const char* const exeName = argv[0]; |
| 108 | |
| 109 | if (argc!=2) { |
| 110 | printf("wrong arguments\n"); |
| 111 | printf("usage:\n"); |
| 112 | printf("%s FILE\n", exeName); |
| 113 | return 1; |
| 114 | } |
| 115 | |
| 116 | const char* const inFilename = argv[1]; |
| 117 | |
| 118 | char* const outFilename = createOutFilename_orDie(inFilename); |
| 119 | compressFile_orDie(inFilename, outFilename, 1); |
| 120 | |
| 121 | free(outFilename); /* not strictly required, since program execution stops there, |
| 122 | * but some static analyzer main complain otherwise */ |
| 123 | return 0; |
| 124 | } |
nothing calls this directly
no test coverage detected