/* seq - print sequence of numbers to standard output.
- Copyright (C) 1994-2003 Free Software Foundation, Inc.
+ Copyright (C) 1994-2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
/* Actually print the sequence of numbers in the specified range, with the
given or default stepping and format. */
-static int
+static void
print_numbers (const char *fmt)
{
int i;
if (i)
fputs (terminator, stdout);
-
- return 0;
}
#if HAVE_RINT && HAVE_MODF && HAVE_FLOOR
int
main (int argc, char **argv)
{
- int errs;
int optc;
/* The printf(3) format used for output. */
format_str = "%g";
}
- errs = print_numbers (format_str);
+ print_numbers (format_str);
- exit (errs);
+ exit (EXIT_SUCCESS);
}