version 1.14, 2014/12/10 19:44:21 |
version 1.15, 2015/02/08 23:40:34 |
|
|
searchar = '/'; |
searchar = '/'; |
break; |
break; |
case 'a': |
case 'a': |
aflag++; |
aflag = 1; |
break; |
break; |
case 'd': |
case 'd': |
dflag++; |
dflag = 1; |
break; |
break; |
case 'f': |
case 'f': |
outfile = optarg; |
outfile = optarg; |
|
|
/* backwards compatibility */ |
/* backwards compatibility */ |
break; |
break; |
case 'u': |
case 'u': |
uflag++; |
uflag = 1; |
break; |
break; |
case 'w': |
case 'w': |
wflag++; |
wflag = 1; |
break; |
break; |
case 'v': |
case 'v': |
vflag++; |
vflag = 1; |
case 'x': |
case 'x': |
xflag++; |
xflag = 1; |
break; |
break; |
case '?': |
case '?': |
default: |
default: |
|
|
free(cmd); |
free(cmd); |
cmd = NULL; |
cmd = NULL; |
} |
} |
++aflag; |
aflag = 1; |
} |
} |
if (!(outf = fopen(outfile, aflag ? "a" : "w"))) |
if (!(outf = fopen(outfile, aflag ? "a" : "w"))) |
err(exit_val, "%s", outfile); |
err(exit_val, "%s", outfile); |