ftruncate does not work with rw file handles

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Dec 12 20:30:00 GMT 2017



On 12/12/2017 18:08, Marc Pawlowsky wrote:
> Is it intentional that ftruncate does not work with read/write file
> handles, or am I doing somthing wrong?
> 

[...]

> int main(int,char**)
> {
>   test("rw");

r+ is the mode for read and write.

>   test("w");
>   return 0;
> }
> 



More information about the Libc-help mailing list