Use the EARGF()-macro in cut.c
This commit is contained in:
parent
733b33f1c7
commit
3946d1fcc9
7
cut.c
7
cut.c
|
@ -159,14 +159,11 @@ main(int argc, char *argv[])
|
||||||
case 'c':
|
case 'c':
|
||||||
case 'f':
|
case 'f':
|
||||||
mode = ARGC();
|
mode = ARGC();
|
||||||
m = ARGF();
|
m = EARGF(usage());
|
||||||
if (!m)
|
|
||||||
usage();
|
|
||||||
parselist(m);
|
parselist(m);
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
if(!(d = ARGF()))
|
d = EARGF(usage());
|
||||||
usage();
|
|
||||||
for (i = 1; i <= strlen(d); i++)
|
for (i = 1; i <= strlen(d); i++)
|
||||||
if (fullrune(d, i))
|
if (fullrune(d, i))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user