/* unesc.c -- delete \\ at end of lines */ /* $Id$ */ /* Carlos Duarte, 970225/990314 */ #include #include #include static int do_args(int first, int ac, char *av[]); #define ARG() \ s[1] ? (t=s+1, s+=strlen(s)-1, t) : ++i =0 && oc != opts.ch) { putchar(oc); while (spc--) putchar(' '); } putchar('\n'); spc=0; c= -2; continue; } if (oc < 0) continue; if (oc == ' ') { spc++; continue; } if (oc>=0) { while (spc--) putchar(' '); spc = 0; putchar(oc); } } if (f != stdin) fclose(f); } static int do_args(int ix, int argc, char *argv[]) { if (ix == argc) { unesc(0); } else for (; ix