Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hplsla!rodolfom From: rodolfom@hplsla.HP.COM (Rodolfo Mancisidor) Newsgroups: comp.unix.questions Subject: Re: isatty(stdin) usage Message-ID: <5520001@hplsla.HP.COM> Date: 22 Feb 89 18:23:35 GMT References: <314@wubios.wustl.edu> Organization: HP Lake Stevens, WA Lines: 18 >I am trying to use this invokation: > > if (isatty (stdin)) isatty() expects a file descriptor (an integer) you are passing a file pointer (FILE *) try: if (isatty(0)) ___ ___ _________ /_ /| /_ /| /_______ /| |##| | |##| | |########| | |##| |_|##| | |##| L|##| | |##|/__|##| | |##|/_|##| | Rodolfo Mancisidor Lake |#########| | |########|/ [ [ 1[206] ] 335 ] 2912 Stevens |##| | |##| | |##| | 8600 Soper Hill Road Instruments |##| | |##| | |##| | Everett, WA 98205-1298 Division |##|/ |##|/ |##|/ rodolfom%hplsla@hplabs.hp.com (LSID)