Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <io.h>
    int isatty( int handle );

Description:
    The isatty function tests if the opened file or device referenced by the
    file handle handle is a character device (for example, a console,
    printer or port).

Returns:
    The isatty function returns zero if the device or file is not a
    character device; otherwise, a non-zero value is returned.  When an
    error has occurred,  errno contains a value indicating the type of error
    that has been detected.

See Also:
    open

Example:
    #include <stdio.h>
    #include <io.h>

    void main()
      {
        printf( "stdin is a %stty\n",
                ( isatty( fileno( stdin ) ) )
                ? "" : "not " );
      }

Classification:
    POSIX 1003.1

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson