📄 tt
字号:
@c ----------------------------------------------------------------------
@node ttyname, unix
@heading @code{ttyname}
@subheading Syntax
@example
#include <osfcn.h>
char *ttyname(int file);
@end example
@subheading Description
Gives the name of the terminal associated with @var{file}.
@subheading Return Value
Returns "/dev/con" if @var{file} is a device, else @code{NULL}.
@subheading Example
@example
char *tty = ttyname(0);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -