update
This commit is contained in:
parent
ca5750ea71
commit
b78ad08856
@ -23,30 +23,28 @@ int codage(int argc, char *argv[]) {
|
|||||||
count = count + 1;
|
count = count + 1;
|
||||||
}
|
}
|
||||||
generate(count);
|
generate(count);
|
||||||
fclose(f_m);
|
/* Traitement erreur */
|
||||||
|
//fclose(f_m);
|
||||||
|
|
||||||
//2
|
//2
|
||||||
f_k = fopen(cheminFic_k, "wb");
|
f_k = fopen(cheminFic_k, "wb");
|
||||||
if (f_k)
|
while (f_k)
|
||||||
{
|
{
|
||||||
fwrite(cle, sizeof(char), count, f_k);
|
fwrite(cle, sizeof(char), count, f_k);
|
||||||
}
|
}
|
||||||
else
|
fclose(f_k);
|
||||||
{
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
|
||||||
f_k = fopen(cheminFic_k, "r");
|
f_k = fopen(cheminFic_k, "r");
|
||||||
/* Traitement erreur */
|
/* Traitement erreur */
|
||||||
fclose(f_k);
|
//fclose(f_k);
|
||||||
|
|
||||||
//3
|
//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");
|
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)
|
while ((c = fgetc(f_m)) != EOF)
|
||||||
{
|
{
|
||||||
k1 = fgetc(f_k);
|
k1 = fgetc(f_k);
|
||||||
|
Loading…
Reference in New Issue
Block a user