home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / lang / popensrc.lzh / TST.C < prev   
Encoding:
C/C++ Source or Header  |  1990-11-05  |  339 b   |  15 lines

  1. /*
  2. **  This dumb little program simply writes something to stdout and
  3. **  something else to stderr.  It then exits with a strange value.
  4. **  It's only purpose is to test popen() in it's "r" form.
  5. */
  6.  
  7. #include <stdio.h>
  8.  
  9. main()
  10. {
  11.     printf("This went to stdout\n");
  12.     fprintf(stderr,"This went to stderr\n");
  13.     exit(12);    /* test exit code */
  14. }
  15.