Yûki - Update Bit a Bit

This commit is contained in:
NyxiumYuuki 2019-12-09 18:24:19 +01:00
parent 9d60a36ab8
commit 0a5b3ef12d
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
6 changed files with 14 additions and 11 deletions

View file

@ -13,7 +13,7 @@ int main(int argc, char **argv){
const char *mode= "rb";
// Vérification de l'existance du second argument (Nom du fichier à compresser)
printf("Argc : %d\n",argc);
if(argc != 2){
if(argc == 2){
printf("\nErreur : Veuillez mettre en argument un nom de fichier à compresser (Ex: %s text.txt)\n",argv[0]);
return -1;
}
@ -23,10 +23,12 @@ int main(int argc, char **argv){
return -2;
}
printf("test\n");
int *nb_char;
*nb_char=0;
int nb_char;
nb_char=0;
int *p;
p=&nb_char;
Freq freq;
freq = freq_apparition(file, nb_char);
freq = freq_apparition(file, p);
printf("hey");
return 0;
}