Computer Science


TTYNAME(3)          Linux Programmer's Manual          TTYNAME(3)

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)

Linux                     April 20, 1995                        1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page