Password checking program
Ned D. Danieley
ndd at macbeth.cs.duke.edu
Thu Aug 10 00:58:18 AEST 1989
In article <20557 at adm.BRL.MIL> rbj at dsys.ncsl.nist.gov (Root Boy Jim) writes:
>? From: CCEL <ccel at community-chest.uucp>
>
>? 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 at sunbar.mc.duke.edu)
Basic Arrhythmia Laboratory
Box 3140, Duke University Medical Center
Durham, NC 27710
(919) 684-6807 or 684-6942
More information about the Comp.unix.questions
mailing list