summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-01-12 05:03:08 +0000
committerJim Meyering <jim@meyering.net>1995-01-12 05:03:08 +0000
commitcfaf788606e85ad2fa0370e55e0b4eb7e9be6881 (patch)
tree589d11184fb8149a433924e1de5e952fed1ed9c5 /src
parent98b530a36d3a718d916a8109b21270c61ee71f6b (diff)
downloadcoreutils-cfaf788606e85ad2fa0370e55e0b4eb7e9be6881.tar.xz
Fix typo: seperator -> separator.
Diffstat (limited to 'src')
-rw-r--r--src/seq.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/seq.c b/src/seq.c
index a74f6e7c0..fd120a056 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -42,8 +42,8 @@ static double from;
/* The name that this program was run with. */
char *program_name;
-/* The string used to seperate two number. */
-static char *seperator;
+/* The string used to separate two number. */
+static char *separator;
/* If non-zero, display usage information and exit. */
static int show_help;
@@ -62,7 +62,7 @@ static struct option const long_options[] =
{ "equal-width", no_argument, NULL, 'w'},
{ "format", required_argument, NULL, 'f'},
{ "help", no_argument, &show_help, 1},
- { "seperator", required_argument, NULL, 's'},
+ { "separator", required_argument, NULL, 's'},
{ "version", no_argument, &show_version, 1},
{ NULL, 0, NULL, 0}
};
@@ -83,7 +83,7 @@ Usage: %s [OPTION]... [from [step]] to\n\
\n\
-f, --format FORMAT use printf(3) style FORMAT (default: %%g)\n\
--help display this help and exit\n\
- -s, --seperator STRING use STRING for seperating numbers (default: \\n)\n\
+ -s, --separator STRING use STRING for separating numbers (default: \\n)\n\
--version output version information and exit\n\
-w, --equal-width equalize width by padding with leading zeroes\n\
\n\
@@ -107,7 +107,7 @@ main (argc, argv)
program_name = argv[0];
equal_width = 0;
format_str = NULL;
- seperator = "\n";
+ separator = "\n";
from = 1.0;
step_is_set = 0;
@@ -134,7 +134,7 @@ main (argc, argv)
break;
case 's':
- seperator = optarg;
+ separator = optarg;
break;
case 'w':
@@ -392,11 +392,12 @@ print_numbers (format_str)
{
(void) printf (format_str, from);
+ /* FIXME: don't increment!!! Use `first + i * step'. */
from += step;
if (from < last)
break;
- (void) fputs (seperator, stdout);
+ (void) fputs (separator, stdout);
}
}
else
@@ -412,11 +413,12 @@ print_numbers (format_str)
{
(void) printf (format_str, from);
+ /* FIXME: don't increment!!! Use `first + i * step'. */
from += step;
if (from > last)
break;
- (void) fputs (seperator, stdout);
+ (void) fputs (separator, stdout);
}
}