Pegasus InfoCorp: Web site design and web software development company

TTYNAME (3)

return name of a terminal

SYNOPSIS

    l
    #include <unistd.h>
      char *ttyname ( int  desc  );  
    
    b

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