errno

Boyd Roberts boyd at prl.dec.com
Mon Jun 17 22:43:18 AEST 1991


In article <2157 at mitisft.Convergent.COM>, dold at mitisft.Convergent.COM (Clarence Dold) writes:
> printf("Errno %d: %s\n", want_err, 
> 	want_err <= sys_nerr ? sys_errlist[want_err] : "Out of range" );
> 
> I like this one because it's one of the few places where the " ? : "
> construct looks correct to me.

Eh?  The bounds of a reasonable errnos lie between 1 and sys_nerr.
`errno == 0' means no error.

Boyd Roberts			boyd at prl.dec.com

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.questions mailing list