Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1. #include <stdio.h>
  2.  
  3. int main(int argc, char **argv)
  4. {
  5.   int ch;
  6.  
  7.   (void)argc; (void)argv;
  8.   while (!feof(stdin))
  9.    {
  10.     ch=fgetc(stdin);
  11.     if (ch==10) fputc(13,stdout);
  12.     if (ch!=EOF) fputc(ch,stdout);
  13.    }
  14.   return 0;
  15. }