/* passes stdin to stdout, adding a CR for every NL handy when printing unix text files to printers that require carriage returns */ #include main() { char ccc ; while((ccc = getchar()) != EOF) { putchar(ccc) ; if(ccc == '\n') putchar('\r'); } exit(0) ; }