How do I decrease the file size?
I have increased the file size with
lseek(fd, size, SEEK_SET);
write(fd,"",1);
Now, how would I decrease the same file?
How do I decrease the file size?
I have increased the file size with
lseek(fd, size, SEEK_SET);
write(fd,"",1);
Now, how would I decrease the same file?
truncate() under libc.