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.3 and 1.4

version 1.3, 2001/12/13 12:22:22 version 1.4, 2001/12/13 17:33:42
Line 16  int main(void) {
Line 16  int main(void) {
         fprintf(stderr, "DEBUG: stderr->_fileno = %d\n", stderr->_fileno);          fprintf(stderr, "DEBUG: stderr->_fileno = %d\n", stderr->_fileno);
   
         while (fgets(buf, BUFSIZE - 1, stdin) != NULL) {          while (fgets(buf, BUFSIZE - 1, stdin) != NULL) {
                 if (print_to_both(buf) == EOF) {                  if (print_to_both(buf)) {
                         print_to_both("print_to_both() error\n");                          print_to_both("print_to_both() error\n");
                         return 1;                          return 1;
                 }                  }
Line 29  int main(void) {
Line 29  int main(void) {
   
 int print_to_stdout(char *s)  int print_to_stdout(char *s)
 {  {
         return fputs("stdout: ", stdout)          return fputs("stdout: ", stdout) == EOF
                 || fputs(s, stdout);                  || fputs(s, stdout) == EOF;
 }  }
   
 int print_to_stderr(char *s)  int print_to_stderr(char *s)
 {  {
         return fputs("stderr: ", stderr)          return fputs("stderr: ", stderr) == EOF
                 || fputs(s, stderr);                  || fputs(s, stderr) == EOF;
 }  }
   
 int print_to_both(char *s)  int print_to_both(char *s)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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