Closed GoogleCodeExporter closed 9 years ago
Good catch re: argc, i'll send a patch in a few to fix that.
Re: the full path of progname, i understand your point, i think
progname = basename(argv[0]);
is a simpler way of achieving it though.
Re: strtoul() & error checking, according to strtoul(3) on linux:
Since strtoul() can legitimately return 0 or LONG_MAX (LLONG_MAX for
strtoull()) on both success and failure, the
calling program should set errno to 0 before the call, and then determine if
an error occurred by checking whether
errno has a nonzero value after the call.
so if i'm reading that correctly, then the current behavior should be fine.
Thanks for the comments
Original comment by kormat
on 15 Jul 2009 at 6:38
Original comment by kormat
on 20 Jul 2009 at 5:26
Original issue reported on code.google.com by
ralph.co...@gmail.com
on 14 Jul 2009 at 9:28