tm
来自「Algorithms for Image Processing and Comp」· 代码 · 共 54 行
TXT
54 行
@c ----------------------------------------------------------------------
@node tmpfile, stdio
@heading @code{tmpfile}
@subheading Syntax
@example
#include <stdio.h>
FILE *tmpfile(void);
@end example
@subheading Description
This function opens a temporary file. It will automatically be removed
when the program exits.
@subheading Return Value
A newly opened file.
@subheading Example
@example
FILE *tmp = tmpfile();
@end example
@c ----------------------------------------------------------------------
@node tmpnam, stdio
@heading @code{tmpnam}
@subheading Syntax
@example
#include <stdio.h>
char *tmpnam(char *s);
@end example
@subheading Description
If @var{s} is NULL, a buffer is allocated, else @var{s} is used to hold
the name of a unique file.
@subheading Return Value
A pointer to the new file name.
@subheading Example
@example
char buf[PATH_MAX];
char *s = tmpname(buf);
@end example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?