Home | History | Annotate | Download | only in fold

Lines Matching defs:width

69 	int width;
75 width = -1;
85 if ((width = atoi(optarg)) <= 0)
86 errx(1, "illegal width value");
90 if (width == -1) {
93 width = atoi(++p);
95 width = atoi(argv[optind] + 1);
104 if (width == -1)
105 width = DEFLINEWIDTH;
108 fold(width);
114 fold(width);
119 * Fold the contents of standard input to fit within WIDTH columns
124 * until the current column > width, or a newline or EOF is read.
126 * The buffer can grow larger than WIDTH due to backspaces and carriage
130 fold(int width)
151 if (col > width) {
245 "usage: %s [-bs] [-w width] [file ...]\n", getprogname());