tt

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

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