Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jh4o+ From: jh4o+@andrew.cmu.edu (Jeffrey T. Hutzelman) Newsgroups: comp.lang.c Subject: Re: For vs while (was Re: Comparing strings...) Message-ID: Date: 24 Oct 90 21:36:10 GMT References: <2205.271700c2@cc.nu.oz.au> <1990Oct13.190106.15615@ux1.cso.uiuc.edu> <10678.271ade27@amherst.bitnet> <1990Oct17.030157.460@ux1.cso.uiuc.edu> <2226@ukc>, <8308@scolex.sco.COM> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 19 In-Reply-To: <8308@scolex.sco.COM> seanf@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+@andrew.cmu.edu, jhutz@drycas.club.cc.cmu.edu, jh4o@cmuccvma >> Apple // Forever!!! <<