Article ID: 122442
Article Last Modified on 8/5/2005
c:\>test hello world (stdout) hello world (stderr) hello world (stdout) hello world (stderr)However, if the output is piped with the MORE command, it will not be serialized, as follows:
c:\>test | more hello world (stderr) hello world (stderr) hello world (stdout) hello world (stdout)
/* Compile options needed: none
/*
/* TEST.C */
#include <stdio.h>
int main(void)
{
printf ( "Hello world (stdout)\n" );
fprintf ( stderr, "Hello world (stderr)\n" );
printf ( "Hello world (stdout)\n" );
fprintf ( stderr, "Hello world (stderr)\n" );
}
Keywords: kbtshoot kbprb KB122442