mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-29 00:31:52 +00:00
26 lines
264 B
C
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;
|
|
}
|