Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cica!ctrsol!uakari.primate.wisc.edu!indri!xanth!mcnc!duke!macbeth!ndd From: ndd@macbeth.cs.duke.edu (Ned D. Danieley) Newsgroups: comp.unix.questions Subject: Re: Password checking program Message-ID: <15257@duke.cs.duke.edu> Date: 9 Aug 89 14:58:18 GMT References: <20557@adm.BRL.MIL> Sender: news@duke.cs.duke.edu Reply-To: ndd@macbeth.UUCP (Ned D. Danieley) Organization: Duke University CS Dept.; Durham, NC Lines: 33 In article <20557@adm.BRL.MIL> rbj@dsys.ncsl.nist.gov (Root Boy Jim) writes: >? From: CCEL> >? I'm still getting requests for that silly password checking program >? I talked about last week, and I thought i'd posted the source here > >How about a more portable and safe version? Comments follow. > >? Remember to take my .sig off the end of this guy. > >You might have saved yourself some embarrassment if you had. > Another problem is: ... >? #define ENDOFFILE -1 ... >? done=ENDOFFILE; some compilers will interpret this as the old =- assignment operator. this is one place where style can really make a difference: done = ENDOFFILE; is easier to read and doesn't piss off cc. Ned Danieley (ndd@sunbar.mc.duke.edu) Basic Arrhythmia Laboratory Box 3140, Duke University Medical Center Durham, NC 27710 (919) 684-6807 or 684-6942