21 lines
413 B
C
21 lines
413 B
C
#include "../include/compress.h"
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, const char** argv) {
|
|
if (argc != 2) {
|
|
fprintf(stderr, "Utilisation : compress <source>\n");
|
|
|
|
if (argc == 1) {
|
|
fprintf(stderr, "Paramètre fichier manquant.\n");
|
|
} else {
|
|
fprintf(stderr, "Trop de paramètres.\n");
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|
|
compress(argv[1]);
|
|
|
|
return 0;
|
|
}
|