/*
 * wr_fputs - like fputs(), but makes control characters visible and
 *     turns \n into \r\n.
 */
void
wr_fputs(char *s) {
        char c;

#define PUTC(c) if (carefulputc(c,stdout) == EOF) goto err;

while(*s) {
        c = *s++;
        if (c == '\n')
        PUTC('\r');
        PUTC(c);
}

I will see about adding an option flag to disable the CR and write
check for the flag setting in the one or two places 'wr_fputs' is 
invoked.





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to