diff options
author | Jim Meyering <jim@meyering.net> | 1994-11-16 13:05:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-11-16 13:05:38 +0000 |
commit | c35f55124bd0449346bfdfb1ca2b085147f97a47 (patch) | |
tree | 072ad9bcec2ee3677dd6145156cd25c38cd11c22 | |
parent | 005bf814613c0b49ed82126fa43bccae227e4d51 (diff) | |
download | coreutils-c35f55124bd0449346bfdfb1ca2b085147f97a47.tar.xz |
.
-rw-r--r-- | src/fmt.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -18,16 +18,12 @@ /* Written by Ross Paterson <rap@doc.ic.ac.uk>. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif - #include <stdio.h> - #include <sys/types.h> -#include "system.h" +#include <getopt.h> -#include "getopt.h" +#include "system.h" #include "version.h" /* The following parameters represent the program's idea of what is @@ -101,9 +97,9 @@ typedef long COST; /* Extra ctype(3)-style macros. */ -#define isopen(c) (strchr ("([`'\"", c) != NULL) -#define isclose(c) (strchr (")]'\"", c) != NULL) -#define isperiod(c) (strchr (".?!", c) != NULL) +#define isopen(c) (index ("([`'\"", c) != NULL) +#define isclose(c) (index (")]'\"", c) != NULL) +#define isperiod(c) (index (".?!", c) != NULL) /* Size of a tab stop, for expansion on input and re-introduction on output. */ @@ -387,7 +383,7 @@ main (argc, argv) if (show_version) { - printf ("%s\n", version_string); + printf ("%s - %s\n", program_name, version_string); exit (0); } |