home *** CD-ROM | disk | FTP | other *** search
- /*
- ** This dumb little program simply writes something to stdout and
- ** something else to stderr. It then exits with a strange value.
- ** It's only purpose is to test popen() in it's "r" form.
- */
-
- #include <stdio.h>
-
- main()
- {
- printf("This went to stdout\n");
- fprintf(stderr,"This went to stderr\n");
- exit(12); /* test exit code */
- }
-