Eli the Bearded wrote:
> I basically completely rewrote slowcat.c today:
> https://gist.github.com/Eli-the-Bearded/162ad5989cc5b95c4b18758dd9da0780
Great work. For the user that's trying to be difficult there might be an
unexpected unsigned to signed conversion: an argument >LONG_MAX will
trigger the <75 test because you use strtoul but store the result in a
(signed) long variable. Of course the test for upper *and* lower bound
guarantees functionality in some way, so, no biggie.
Also, but I am not at all sure because I didn't know getopt (a glaring
omission in my C knowledge) and only just looked it up, but it seems like
opterr must be set to zero if you want to avoid default error messages.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|