Mail Archives: djgpp/1999/02/08/20:28:58
Jaime Tejedor Gomez wrote:
>
> Hi all
>
> I've got the following program:
>
> #include <stdio.h>
> #include <stdlib.h>
> main()
> {
> printf("HELLO WORLD. PRESS KEY");
> while(!bioskey(1));
> exit(0);
> }
>
> My question is:
>
> How can I prevent DJGPP from reordering instruction's ejecution to make it
> print the message before waiting for the key? Sorry if that's a dumb
> question, but I've searched in FAQ, info and Rhide help and found nothing
> about it. TIA.
The printf isn't being executed after the bioskey, it's just that printf
is buffering the output. See FAQ section 9.4.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -