📄 tr
字号:
@c ----------------------------------------------------------------------
@node truncate, io
@heading @code{truncate}
@subheading Syntax
@example
#include <osfcn.h>
int truncate(const char *file, unsigned long size);
@end example
@subheading Description
This function truncates @var{file} to @var{size} bytes.
@subheading Return Value
Zero on success, nonzero on failure.
@subheading Example
@example
ftruncate("/tmp/data.txt", 400);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -