Fix typo: seperator -> separator.

This commit is contained in:
Jim Meyering 1995-01-12 05:03:08 +00:00
parent 98b530a36d
commit cfaf788606

View File

@ -42,8 +42,8 @@ static double from;
/* The name that this program was run with. */ /* The name that this program was run with. */
char *program_name; char *program_name;
/* The string used to seperate two number. */ /* The string used to separate two number. */
static char *seperator; static char *separator;
/* If non-zero, display usage information and exit. */ /* If non-zero, display usage information and exit. */
static int show_help; static int show_help;
@ -62,7 +62,7 @@ static struct option const long_options[] =
{ "equal-width", no_argument, NULL, 'w'}, { "equal-width", no_argument, NULL, 'w'},
{ "format", required_argument, NULL, 'f'}, { "format", required_argument, NULL, 'f'},
{ "help", no_argument, &show_help, 1}, { "help", no_argument, &show_help, 1},
{ "seperator", required_argument, NULL, 's'}, { "separator", required_argument, NULL, 's'},
{ "version", no_argument, &show_version, 1}, { "version", no_argument, &show_version, 1},
{ NULL, 0, NULL, 0} { NULL, 0, NULL, 0}
}; };
@ -83,7 +83,7 @@ Usage: %s [OPTION]... [from [step]] to\n\
\n\ \n\
-f, --format FORMAT use printf(3) style FORMAT (default: %%g)\n\ -f, --format FORMAT use printf(3) style FORMAT (default: %%g)\n\
--help display this help and exit\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\ --version output version information and exit\n\
-w, --equal-width equalize width by padding with leading zeroes\n\ -w, --equal-width equalize width by padding with leading zeroes\n\
\n\ \n\
@ -107,7 +107,7 @@ main (argc, argv)
program_name = argv[0]; program_name = argv[0];
equal_width = 0; equal_width = 0;
format_str = NULL; format_str = NULL;
seperator = "\n"; separator = "\n";
from = 1.0; from = 1.0;
step_is_set = 0; step_is_set = 0;
@ -134,7 +134,7 @@ main (argc, argv)
break; break;
case 's': case 's':
seperator = optarg; separator = optarg;
break; break;
case 'w': case 'w':
@ -392,11 +392,12 @@ print_numbers (format_str)
{ {
(void) printf (format_str, from); (void) printf (format_str, from);
/* FIXME: don't increment!!! Use `first + i * step'. */
from += step; from += step;
if (from < last) if (from < last)
break; break;
(void) fputs (seperator, stdout); (void) fputs (separator, stdout);
} }
} }
else else
@ -412,11 +413,12 @@ print_numbers (format_str)
{ {
(void) printf (format_str, from); (void) printf (format_str, from);
/* FIXME: don't increment!!! Use `first + i * step'. */
from += step; from += step;
if (from > last) if (from > last)
break; break;
(void) fputs (seperator, stdout); (void) fputs (separator, stdout);
} }
} }