summaryrefslogtreecommitdiffstats
path: root/usr.bin/fmt/fmt.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
commita14d555c873398b14776ca4f2c33f9c69617afb9 (patch)
tree350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/fmt/fmt.c
parentf3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff)
downloadFreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip
FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/fmt/fmt.c')
-rw-r--r--usr.bin/fmt/fmt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c
index 67e5931..6d689c1 100644
--- a/usr.bin/fmt/fmt.c
+++ b/usr.bin/fmt/fmt.c
@@ -90,7 +90,7 @@ main(argc, argv)
lineno = 1;
mark = -10;
/*
- * LIZ@UOM 6/18/85 -- Check for goal and max length arguments
+ * LIZ@UOM 6/18/85 -- Check for goal and max length arguments
*/
if (argc > 1 && (1 == (sscanf(argv[1], "%d", &number)))) {
argv++;
@@ -165,7 +165,7 @@ fmt(fi)
*/
while (c != '\n' && c != EOF)
c = getc(fi);
-
+
/*
* Expand tabs on the way to canonb.
*/
@@ -266,7 +266,7 @@ split(line)
/*
* Collect a 'word,' allowing it to contain escaped white
- * space.
+ * space.
*/
while (*cp && *cp != ' ') {
if (*cp == '\\' && isspace(cp[1]))
@@ -277,7 +277,7 @@ split(line)
/*
* Guarantee a space at end of line. Two spaces after end of
- * sentence punctuation.
+ * sentence punctuation.
*/
if (*cp == '\0') {
*cp2++ = ' ';
@@ -288,7 +288,7 @@ split(line)
*cp2++ = *cp++;
*cp2 = '\0';
/*
- * LIZ@UOM 6/18/85 pack(word);
+ * LIZ@UOM 6/18/85 pack(word);
*/
pack(word, wordl);
}
@@ -348,14 +348,14 @@ pack(word,wl)
* length of the line before the word is added; t is now the length
* of the line after the word is added
* t = strlen(word);
- * if (t+s <= LENGTH)
+ * if (t+s <= LENGTH)
*/
s = outp - outbuf;
t = wl + s;
if ((t <= goal_length) ||
((t <= max_length) && (t - goal_length <= goal_length - s))) {
/*
- * In like flint!
+ * In like flint!
*/
for (cp = word; *cp; *outp++ = *cp++);
return;
@@ -398,7 +398,7 @@ tabulate(line)
while (cp >= line && *cp == ' ')
cp--;
*++cp = '\0';
-
+
/*
* Count the leading blank space and tabulate.
*/
OpenPOWER on IntegriCloud