[net.lang.c] Need Non-Blocking Terminal Input Fun

gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (01/28/86)

How many times have you seen something like the following?

> 	tim.tv_sec = (argc>1)?atoi(argv[1]):3; 	/* wait for argv[1] seconds */
> 						/* default is 9		    */

Moral:  Don't believe comments; check the code anyway.

franka@mmintl.UUCP (Frank Adams) (02/01/86)

In article <2029@brl-tgr.ARPA> gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) writes:
>How many times have you seen something like the following?
>
>> 	tim.tv_sec = (argc>1)?atoi(argv[1]):3; 	/* wait for argv[1] seconds */
>> 						/* default is 9		    */
>
>Moral:  Don't believe comments; check the code anyway.

More important moral: When you change the code, change the comments.

Frank Adams                           ihpn4!philabs!pwa-b!mmintl!franka
Multimate International    52 Oakland Ave North    E. Hartford, CT 06108