Developer's Daily Unix by Example
  main | java | perl | unix | dev directory | web log
 
 
Main
Unix
Man Pages
   

TTYNAME

NAME
SYNOPSIS
DESCRIPTION
CONFORMING TO
SEE ALSO

NAME

ttyname ? return name of a terminal

SYNOPSIS

#include <unistd.h>

char *ttyname ( int desc );

DESCRIPTION

Returns a pointer to the pathname of the terminal device that is open on the file descriptor desc, or NULL on error (for example, if desc is not connected to a terminal).

CONFORMING TO

POSIX.1

SEE ALSO

fstat(2), isatty(3)


copyright 1998-2007, devdaily.com, all rights reserved.
devdaily.com, an alvin j. alexander production.