Mercurial > hg > toybox
changeset 760:41b067739bd0
Whitespace.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 23 Dec 2012 01:21:01 -0600 |
parents | 143a9729fec8 |
children | 6a558bf5de65 |
files | toys/lsb/seq.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/lsb/seq.c Sun Dec 16 17:58:25 2012 +0100 +++ b/toys/lsb/seq.c Sun Dec 23 01:21:01 2012 -0600 @@ -16,6 +16,7 @@ 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 @@ #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;