Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for scripts/ep/dummy/dummy.c between version 1.1 and 1.2

version 1.1, 2001/10/03 21:02:13 version 1.2, 2001/12/04 22:33:16
Line 1 
Line 1 
 #include<stdio.h>  #include <stdio.h>
   
   #define BUFSIZE 8000
   
 int main(void) {  int main(void) {
         register int c;          char buf[BUFSIZE];
           /*
              register int c;
            */
   
           /*
              fclose(stdin);
              stdin = fdopen(0, "r");
   
              fclose(stdout);
              stdout = fdopen(1, "w");
   
              fclose(stderr);
              stderr = fdopen(2, "w");
            */
   /*
         while ((c = getc(stdin)) != EOF) {          while ((c = getc(stdin)) != EOF) {
                 putc(c, stdout);                  putc(c, stdout);
         }          }
   */
   
           //setvbuf(stdout, NULL, _IONBF, 0);
           //setbuf(stdout, NULL);
   
           while (fgets(buf, BUFSIZE - 1, stdin) != NULL) {
                   fputs("stdout: ", stdout);
                   fputs(buf, stdout);
                   fputs("stderr: ", stderr);
                   fputs(buf, stderr);
                   /* fflush(stdout); */
           }
   
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top