tr

来自「Algorithms for Image Processing and Comp」· 代码 · 共 26 行

TXT
26
字号
@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 + =
减小字号Ctrl + -
显示快捷键?