查阅了一上午资料,没找到解决办法 TAT 。
1
fmumu Aug 6, 2020 via Android
truncate ?
|
2
zyffy Aug 6, 2020
ftruncate
|
3
tomychen Aug 6, 2020
new_size = getfilesize()-16;// 自己实现
fread(data,size, oldfile); fwrite(data, new_size,oldfile);//or newfile |
4
julyclyde Aug 6, 2020
删除?右移?
|
5
ReputationZh OP @zyffy 这个函数的第一个参数是 int ? 有没有具体用法。
|
6
trn4 Aug 6, 2020 via iPhone
@ReputationZh man truncate
|
7
nightwitch Aug 6, 2020
|
8
Cooky Aug 6, 2020 via Android
truncate
|