strtol() doesn't return error indicator for overflow, it just sets errno. So add...
authorRob Landley <rob@landley.net>
Thu, 1 Jan 2015 22:28:51 +0000 (16:28 -0600)
committerRob Landley <rob@landley.net>
Thu, 1 Jan 2015 22:28:51 +0000 (16:28 -0600)
commit86c747a4493b2b1aabab9b20d1c4566fddeeb2ca
treefe5254ddbb277f19724c5bacb412e677f595d919
parentcf2516ab4bcf2c1d4cb571539dae794c6a40c5c6
strtol() doesn't return error indicator for overflow, it just sets errno. So add estrtol() (which clears errno first), and xstrtol() (which error_exit()s on overflow).
lib/lib.c
lib/lib.h