isatty(stdin) usage

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Feb 23 08:37:20 AEST 1989


In article <314 at wubios.wustl.edu> david at wubios.wustl.edu (David J. Camp) writes:
>          if (isatty (stdin))
>explain why it does not work?

Because you didn't RTFM.  Try
	if ( isatty( fileno( stdin ) ) )



More information about the Comp.unix.questions mailing list