I seem to be having a problem with printing text files...
Everything prints fine except the first line gets cut off whenever
I try to print. This is the part of the input filter which I am using:
else if (FileType == TEXT) {
fwrite(CRLFseq, sizeof(char), (size_t) strlen(CRLFseq), stdout);
fwrite(buf, sizeof(char), fread_return, stdout);
fread_return = fread(buf, sizeof(char), (size_t) BUFSIZE, stdin);
while (fread_return != EOF && fread_return != 0) {
fwrite(buf, sizeof(char), fread_return, stdout);
fread_return = fread(buf, sizeof(char), (size_t) BUFSIZE, stdin);
}
fwrite(&FF, sizeof(char), 1, stdout);
fwrite(CRseq, sizeof(char), (size_t) strlen(CRseq), stdout);
}
If anybody can offer some assistance, I would appreciate it.
Thanks,
rob
--
College Of Computing
Graphics, Visualization and Usability
Georgia Institute of Technology