www.delorie.com/djgpp/doc/libc-2.01/libc_662.html   search  
Go to the first, previous, next, last section, table of contents.


ttyname

Syntax

#include <unistd.h>

char *ttyname(int file);

Description

Gives the name of the terminal associated with file.

Return Value

Returns "con" if file is a device, else NULL.

Example

char *tty = ttyname(0);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997