Need Non-Blocking Terminal Input Fun

Frank Adams franka at mmintl.UUCP
Sat Feb 1 08:33:08 AEST 1986


In article <2029 at brl-tgr.ARPA> gwyn at 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



More information about the Comp.lang.c mailing list