Mail Archives: djgpp/1997/07/05/05:17:15
Jeffery Guan wrote:
> You could always use setvbuf to flush out the stdout.
> eg....
>
> void main(void)
> {
> setvbuf(stdout, NULL, _IONBF, 0);
> printf("Hello world");
> getch();
> }
Without having to change the buffering mode for printf, you can just use
fflush when you need to:
printf("Hello world");
fflush(stdout);
getch();
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Covenants without the sword / are but words."
/ Camden
- Raw text -