intso(3C)
_________________________________________________________________
intso function
Determine if the standard output file is a terminal.
_________________________________________________________________
Calling Sequence
int intso(), isterm;
isterm = intso();
Description
Use the intso function to determine if the standard output file
is a terminal.
Returns
The intso function returns 1 if the standard output file is a
terminal.
Related Functions
See also the intss function.
Example
/* Program test for the intso() macro */
#include <stdio.h>
int isterm, intso();
main() {
printf("Is standard output a terminal?\n");
printf("%s.\n", (isterm = intso()) == 1 ? "Yes" : "No");
}
A call to the program test generates the output
Is standard output a terminal?
Yes.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)