Mail Archives: djgpp/1998/11/16/03:52:04
$)C
Dear D. J. Delorie:
Thank you for the development of DJGPP which get rid of
the 640kB barrier.
I have a question about the operation of DJGPP printf().
To show the problem I have been confronted with can
be shown by the following example programs.
The example program is the following:
#include <stdio.h>
#include <conio.h>
void main( void ) {
printf( "a" ) ;
getche( ) ;
}
If this program is compiled and made executable by
the tcc.exe of the Turbo C3.0 DOS version, the result
is the following:
a
and when I press a button (for example, b),
then the output is
ab
and the program terminates.
This operation is quite as expected.
But, ...
if this program is compiled and made executable by
the gcc.exe of the DJGPP, the result is the following:
<no output>
and when I press a button (for example, b),
then the output is
ba
and the program terminates.
This operation discourages me a lot, since
I must re-write the program for gcc.exe to do
the same job on the monitor screen.
Please inform me how I can escape this situation.
Thank you.
Won-Seok Lee
(Researcher)
E-mail: lws AT inmac3 DOT snu DOT ac DOT kr
FAX: 82-2-888-3633
- Raw text -