dos33fsprogs/utils/logo/logo_cat.c
2021-07-26 21:33:44 -04:00

26 lines
264 B
C

#include <stdio.h>
int main(int argc, char **argv) {
int result;
int ch;
while(1) {
result=getchar();
if (result<0) break;
if (result==0) break;
ch=result&0x7f;
if (ch=='\r') {
putchar('\n');
}
else {
putchar(ch);
}
}
return 0;
}