This commit is contained in:
toussain 2022-12-16 09:01:00 +01:00
parent ca5750ea71
commit b78ad08856
2 changed files with 12 additions and 14 deletions

View File

@ -23,30 +23,28 @@ int codage(int argc, char *argv[]) {
count = count + 1;
}
generate(count);
fclose(f_m);
/* Traitement erreur */
//fclose(f_m);
//2
f_k = fopen(cheminFic_k, "wb");
if (f_k)
while (f_k)
{
fwrite(cle, sizeof(char), count, f_k);
}
else
{
return EXIT_FAILURE;
}
}
fclose(f_k);
f_k = fopen(cheminFic_k, "r");
/* Traitement erreur */
fclose(f_k);
//fclose(f_k);
//3
f_mc = fopen(cheminFic_mc, "w");
/* Traitement erreur */
fclose(f_mc);
f_m = fopen(cheminFic_m, "r");
f_k = fopen(cheminFic_k, "r");
f_mc = fopen(cheminFic_mc, "wb");
/* Traitement erreur */
//fclose(f_mc);
//f_m = fopen(cheminFic_m, "r");
//f_k = fopen(cheminFic_k, "r");
//f_mc = fopen(cheminFic_mc, "wb");
while ((c = fgetc(f_m)) != EOF)
{
k1 = fgetc(f_k);

BIN
prgm/run Executable file

Binary file not shown.