dect
/
asl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asl/addcr.c

14 lines
216 B
C
Raw Permalink Normal View History

#include <stdio.h>
int main(int argc, char **argv)
{
int ch;
while (!feof(stdin))
{
ch=fgetc(stdin);
if (ch==10) fputc(13,stdout);
if (ch!=EOF) fputc(ch,stdout);
}
return 0;
}