Reorder variables in seq(1)
This commit is contained in:
parent
7e7d15b7a5
commit
b8c9a88371
11
seq.c
11
seq.c
@ -8,8 +8,8 @@
|
|||||||
static int
|
static int
|
||||||
digitsleft(const char *d)
|
digitsleft(const char *d)
|
||||||
{
|
{
|
||||||
char *exp;
|
|
||||||
int shift;
|
int shift;
|
||||||
|
char *exp;
|
||||||
|
|
||||||
if (*d == '+')
|
if (*d == '+')
|
||||||
d++;
|
d++;
|
||||||
@ -22,8 +22,8 @@ digitsleft(const char *d)
|
|||||||
static int
|
static int
|
||||||
digitsright(const char *d)
|
digitsright(const char *d)
|
||||||
{
|
{
|
||||||
char *exp;
|
|
||||||
int shift, after;
|
int shift, after;
|
||||||
|
char *exp;
|
||||||
|
|
||||||
exp = strpbrk(d, "eE");
|
exp = strpbrk(d, "eE");
|
||||||
shift = exp ? estrtonum(&exp[1], INT_MIN, INT_MAX) : 0;
|
shift = exp ? estrtonum(&exp[1], INT_MIN, INT_MAX) : 0;
|
||||||
@ -79,11 +79,10 @@ usage(void)
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
const char *starts = "1", *steps = "1", *ends = "1", *sep = "\n";
|
|
||||||
int wflag = 0;
|
|
||||||
char *tmp, ftmp[BUFSIZ], *fmt = ftmp;
|
|
||||||
double start, step, end, out, dir;
|
double start, step, end, out, dir;
|
||||||
int left, right;
|
int wflag = 0, left, right;
|
||||||
|
char *tmp, ftmp[BUFSIZ], *fmt = ftmp;
|
||||||
|
const char *starts = "1", *steps = "1", *ends = "1", *sep = "\n";
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'f':
|
case 'f':
|
||||||
|
Loading…
Reference in New Issue
Block a user