static char *sccsid
= "@(#)unexpand.c 4.1 (Berkeley) %G%";
* unexpand - put tabs into a file replacing blanks
if (strcmp(argv
[0], "-a") != 0) {
fprintf(stderr
, "usage: unexpand [ -a ] file ...\n");
if (freopen(argv
[0], "r", stdin
) == NULL
) {
while (fgets(genbuf
, BUFSIZ
, stdin
) != NULL
) {
for (cp
= linebuf
; *cp
; cp
++)
cp
= genbuf
, dp
= linebuf
;
while (((ocol
+ 8) &~ 07) <= dcol
) {
if (*cp
== 0 || c
== 0) {