Output redirection

Joe Smith jms at tardis.Tymnet.COM
Sat Oct 20 10:25:15 AEST 1990


#include <stdio.h>
main()
{
        fprintf(stdout,"Some People\n") ;
	fflush(stdout);   /* must flush to make sure this comes out 1st */
        fprintf(stderr,"Are In\n") ;
	fflush(stderr);
        fprintf(stdout,"Very \n") ;
	fflush(stdout);
        fprintf(stderr,"Deep\n") ;
	fflush(stderr);
        fprintf(stdout,"Trouble\n") ;
	fflush(stdout);
}
-- 
Joe Smith (408)922-6220 | SMTP: jms at tardis.tymnet.com or jms at gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C41    | BIX: smithjoe | 12 PDP-10s still running! "POPJ P,"
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."



More information about the Comp.unix.shell mailing list