version 1.3, 2010/05/24 16:23:10
|
version 1.7, 2010/08/06 15:32:55
|
Line 98 main(int argc, char *argv[])
|
Line 98 main(int argc, char *argv[])
|
{ |
{ |
file *f_source; |
file *f_source; |
|
|
|
int caractere; |
int ios; |
int ios; |
|
|
unsigned char *encodage_destination; |
unsigned char *encodage_destination; |
Line 288 main(int argc, char *argv[])
|
Line 289 main(int argc, char *argv[])
|
return(-1); |
return(-1); |
} |
} |
|
|
fflush(stdin); |
|
|
|
for(j = 0; (j < d_LONGUEUR) && (drapeau == 0); j++) |
for(j = 0; (j < d_LONGUEUR) && (drapeau == 0); j++) |
{ |
{ |
if ((fichier_source[(d_LONGUEUR * (i - 1)) + j] = getc(stdin)) |
if ((caractere = getc(stdin)) == EOF) |
== (unsigned char) EOF) |
|
{ |
{ |
|
fichier_source[(d_LONGUEUR * (i - 1)) + j] = 0; |
drapeau = 1; |
drapeau = 1; |
} |
} |
|
else |
|
{ |
|
fichier_source[(d_LONGUEUR * (i - 1)) + j] = |
|
(unsigned char) caractere; |
|
} |
} |
} |
} |
} |
} |
} |