Hi
I have decompression function which opens compressed input file,
grabs the header containing the original file size and the date compressed
and
starts decompressing data into output file....
Because of the padding, decompessed file may be larger than original by up
to 7 bytes....
What I want to do is to insert EOF at the position == original file size
into output file...
So after processing I want to do
// set the position in output file to original file size
fseek(out_file, orig_size, SEEK_SET);
// write EOF in that position
// ???????????????????????????????? fwrite maybe???
// close output file
fclose(out_file);
Question is how do I "inject" EOF at the position i want....What is the code
for it???
Thanks
zambak