Commit 06ab1f3c authored by dragontamer lance's avatar dragontamer lance

slightly cleaned up

parent 18de1fdc
......@@ -21,11 +21,9 @@ int main(int argc, char **argv)
{
i++;
}
printf("%c",(char)achar);
printf("%c",(char)achar);
}
}
// ungetc('\n', infile);
/* translate back into stupid integer format */
while(achar != EOF)
{
......@@ -38,8 +36,7 @@ int main(int argc, char **argv)
{
return 0;
}
while(achar != ';' && achar != EOF)
{
while(achar != ';' && achar != EOF) {
if(achar != 0)
{
printf("%d,",achar);
......@@ -48,19 +45,17 @@ int main(int argc, char **argv)
{
printf("%d",achar);
}
achar = fgetc(infile);
achar = fgetc(infile);
}
printf(";");
achar=fgetc(infile);
while(achar != '\n' && achar != EOF)
{
printf("%c",achar);
achar = fgetc(infile);
achar = fgetc(infile);
}
printf("\n");
fgetc(infile);
// ungetc('\n', infile);
}
}
......@@ -18,7 +18,9 @@ int main(int argc, char **argv)
{
printf("%c",(char)achar);
if(achar == '\n')
{
i++;
}
}
}
/* now we are at first inv line */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment