static char *sccsid
= "@(#)col.c 4.2 (Berkeley) %G%";
char lbuff
[LINELN
], *line
;
for (i
= 1; i
< argc
; i
++) {
fprintf (stderr
, "%s: bad option %s\n",
for (p
= argv
[i
]+1; *p
; p
++) {
fprintf (stderr
, "%s: bad option letter %c\n",
while ((c
= getchar()) != EOF
) {
case '7': /* reverse full line feed */
case '8': /* reverse half line feed */
case '9': /* forward half line feed */
if (c
> 040 && c
< 0177) { /* if printable */
if (page
[(mustwr
+i
)%PL
] != 0)
emit (page
[(mustwr
+i
) % PL
], mustwr
+i
-PL
);
emit (" ", (llh
+ 1) & -2);
if (bflag
|| *line
== '\0' || *line
== ' ')
register char c1
, c2
, c3
;
page
[lno
] = malloc((unsigned)strlen(lbuff
) + 2);
fprintf (stderr
, "%s: no storage\n", pgmname
);
strcpy (page
[lno
],lbuff
);
strcpy (line
, page
[lno
]);
while (cline
< lineno
- 1) {
if ((++ncp
& 7) == 0 && hflag
) {
if (gflag
!= (*p
& GREEK
) && *p
!= '\b') {
if (ll
>= mustwr
&& page
[ll
%PL
]) {
emit (page
[ll
%PL
], ll
- PL
);