Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ intss(3C) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                intss(3C)



        _________________________________________________________________
        intss                                                    function
        Determine if the standard input file is a terminal.
        _________________________________________________________________


        Calling Sequence

        int intss(), isterm;
        isterm = intss();


        Description

        Use the intss function to determine if the standard input file is
        a terminal.


        Returns

        The intss function returns 1 if the standard input file is a
        terminal.


        Related Functions

        See also the intso function.


        Example

        /* Program test for the intss() macro */

        #include <stdio.h>

        int  isterm, intss();

        main() {
            printf("Is standard input a terminal?\n");
            printf("%s.\n", (isterm = intss()) == 1 ? "Yes" : "No");
        }

        A call to the program test generates the output

        Is standard input a terminal?
        Yes.








        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026