O
Old Wolf
Is there any way to set the length of a file that
I've opened with fopen(filename, "r+b") ?
(I want to make the file shorter).
I want my code to work in both Unix and Windows;
in Unix there is a function ftruncate(); but I can't
find an equivalent function in either the C standard
or in my windows compiler.
I've opened with fopen(filename, "r+b") ?
(I want to make the file shorter).
I want my code to work in both Unix and Windows;
in Unix there is a function ftruncate(); but I can't
find an equivalent function in either the C standard
or in my windows compiler.