📄 tempname.c
字号:
/* Demonstration of temporary filenames. */
#include <stdio.h>
int main( void )
{
char buffer[10], *c;
/* Get a temporary name in the defined buffer. */
tmpnam(buffer);
/* Get another name, this time in the function's */
/* internal buffer. */
c = tmpnam(NULL);
/* Display the names. */
printf("Temporary name 1: %s", buffer);
printf("\nTemporary name 2: %s\n", c);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -