For vs while (was Re: Comparing strings...)
Jeffrey T. Hutzelman
jh4o+ at andrew.cmu.edu
Thu Oct 25 07:36:10 AEST 1990
seanf at sco.COM (Sean Fagan) writes:
> #define while(cond) for(;cond;)
> (I'm sitting here trying to think of any case where this will break [no
> pun intended 8-)] something; I can't think of any, offhand.)
How about this one?
do {
/* my code here... */
} while (cond);
-----------------
Jeffrey Hutzelman
America Online: JeffreyH11
Internet/BITNET:jh4o+ at andrew.cmu.edu, jhutz at drycas.club.cc.cmu.edu,
jh4o at cmuccvma
>> Apple // Forever!!! <<
More information about the Comp.lang.c
mailing list