函数原型
int truncate(const char *path,off_t length);
#include <stdio.h>
#include <srdlib.h>
#include <string.h>
#include <unistd.h>
int main()
{
int ret = truncate("filename",250); //文件名 文件大小
return 0;
}
函数原型
int truncate(const char *path,off_t length);
#include <stdio.h>
#include <srdlib.h>
#include <string.h>
#include <unistd.h>
int main()
{
int ret = truncate("filename",250); //文件名 文件大小
return 0;
}