aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
diff options
context:
space:
mode:
Diffstat (limited to 'toys/lsb')
-rw-r--r--toys/lsb/seq.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/toys/lsb/seq.c b/toys/lsb/seq.c
index 2aac4bbf..bf5cab1c 100644
--- a/toys/lsb/seq.c
+++ b/toys/lsb/seq.c
@@ -16,6 +16,7 @@ config SEQ
Count from first to last, by increment. Omitted arguments default
to 1. Two arguments are used as first and last. Arguments can be
negative or floating point.
+
-f Use fmt_str as a floating point format string
-s Use sep_str as separator, default is a newline character
*/
@@ -24,16 +25,17 @@ config SEQ
#include "toys.h"
GLOBALS(
- char * sep;
- char * fmt;
+ char *sep;
+ char *fmt;
)
void seq_main(void)
{
double first, increment, last, dd;
- char * sep_str = "\n";
- char * fmt_str = "%g";
+ char *sep_str = "\n";
+ char *fmt_str = "%g";
int output = 0;
+
// Parse command line arguments, with appropriate defaults.
// Note that any non-numeric arguments are treated as zero.
first = increment = 1;