fmt.c (deba2451768df7509013747bcbbf1ad926f2d9d5) fmt.c (d397408818fbfa179246fb327659e3fb29ffff31)
1/* $OpenBSD: fmt.c,v 1.16 2000/06/25 15:35:42 pjanzen Exp $ */
2
3/* Sensible version of fmt
4 *
5 * Syntax: fmt [ options ] [ goal [ max ] ] [ filename ... ]
6 *
7 * Since the documentation for the original fmt is so poor, here
8 * is an accurate description of what this one does. It's usually

--- 294 unchanged lines hidden (view full) ---

303 else
304 goal_length = get_positive(argv[optind]+1,
305 "width must be nonzero", 1);
306 max_length = goal_length;
307 }
308 continue;
309 case 'h': default:
310 fprintf(stderr,
1/* $OpenBSD: fmt.c,v 1.16 2000/06/25 15:35:42 pjanzen Exp $ */
2
3/* Sensible version of fmt
4 *
5 * Syntax: fmt [ options ] [ goal [ max ] ] [ filename ... ]
6 *
7 * Since the documentation for the original fmt is so poor, here
8 * is an accurate description of what this one does. It's usually

--- 294 unchanged lines hidden (view full) ---

303 else
304 goal_length = get_positive(argv[optind]+1,
305 "width must be nonzero", 1);
306 max_length = goal_length;
307 }
308 continue;
309 case 'h': default:
310 fprintf(stderr,
311"Usage: fmt [-cmps] [-d chars] [-l num] [-t num]\n"
311"usage: fmt [-cmps] [-d chars] [-l num] [-t num]\n"
312" [-w width | -width | goal [maximum]] [file ...]\n"
313"Options: -c center each line instead of formatting\n"
314" -d <chars> double-space after <chars> at line end\n"
315" -l <n> turn each <n> spaces at start of line into a tab\n"
316" -m try to make sure mail header lines stay separate\n"
317" -n format lines beginning with a dot\n"
318" -p allow indented paragraphs\n"
319" -s coalesce whitespace inside lines\n"

--- 319 unchanged lines hidden ---
312" [-w width | -width | goal [maximum]] [file ...]\n"
313"Options: -c center each line instead of formatting\n"
314" -d <chars> double-space after <chars> at line end\n"
315" -l <n> turn each <n> spaces at start of line into a tab\n"
316" -m try to make sure mail header lines stay separate\n"
317" -n format lines beginning with a dot\n"
318" -p allow indented paragraphs\n"
319" -s coalesce whitespace inside lines\n"

--- 319 unchanged lines hidden ---