Convert estrto{l, ul} to estrtonum

Enough with this insanity!
This commit is contained in:
FRIGN
2015-01-30 16:52:44 +01:00
parent 8c359daee3
commit fd562481f3
19 changed files with 30 additions and 81 deletions

5
fold.c
View File

@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -83,10 +84,10 @@ main(int argc, char *argv[])
sflag = 1;
break;
case 'w':
width = estrtol(EARGF(usage()), 0);
width = estrtonum(EARGF(usage()), 1, LLONG_MAX);
break;
ARGNUM:
width = ARGNUMF(0);
width = ARGNUMF(10);
break;
default:
usage();