I'm comparing my output with standard outputs, when I run
diff sampleOutput testOutput
It gives me:
< this has [sic] no [sic] last [sic] linefeed [sic]
\ No newline at end of file
---
> this has [sic] no [sic] last [sic] linefeed [sic]
cmp
tells me it's because there is an EOF on sampleOutput:
cmp: EOF on sampleOutput after byte 361, in line 9
Is there any way I can make this go away?
Update: The last word is printed in this way:
strcat(word, " [sic]");
printf("%s", word);