系统函数-文件操作-truncate()
来源:互联网 发布:世界征服者3 mac 编辑:程序博客网 时间:2024/05/23 18:56
文件截断或填充
truncate#include <unistd.h>int truncate(const char * path, off_t length);int ftruncate(int fd, off_t length);函数说明:truncate()会将参数path 指定的文件大小改为参数length 指定的大小. 如果原来的文件大小比参数length 大, 则超过的部分会被删去.返回值:执行成功则返回0, 失败返回-1, 错误原因存于errno.
0 0
- 系统函数-文件操作-truncate()
- python的文件操作file:(内置函数,如seek、truncate函数)
- 系统函数-文件操作-open()
- 系统函数-文件操作-lseek()
- 系统函数-文件操作-access()
- 系统函数-文件操作-chmod()
- 系统函数-文件操作-chown()
- 系统函数-文件操作-unlink()
- 19-文件截断与 truncate 函数
- 截断文件函数truncate和ftruncate
- truncate函数
- 系统函数-文件操作-write() read()
- 系统函数-文件操作-dup() dup2()
- 系统编程函数之文件目录操作
- python 文件操作中的 file、seek、truncate 用法
- python 文件操作中的 file、seek、truncate 用法
- Linux文件操作,Linux系统函数和C标准库
- 文件和目录操作的系统函数(整理)
- 网站信息架构建设对seo的影响
- 学习记录1
- android用intent传递对象
- redis事务介绍
- 需要学习和了解的技术
- 系统函数-文件操作-truncate()
- gulp任务编写——拷贝文件
- spark on yarn 的运行模式
- 运用snapcraft 2.25+提供的hooks来实现对snap的设置
- 在css中使用自定义字体
- 设计模式之禅笔记3
- 利用runtime追踪对象的每一个方法
- angular2中将带标签的文本输出在页面上
- 常用 Git 命令清单