Mail Archives: djgpp/1999/10/03/11:26:57
On Sun, 03 Oct 1999 19:24:53 +0800, dsk <dseeker AT pd DOT jaring DOT my> wrote:
> Yeap I tried that one but it just blow me up. I run DJGPP on WinDOSBox.
> I don't know what happened but fprintf, putc etc.. just won't work.
> Is there a problem with this simple (overdefining) lines?
> FILE *_outfile = fopen("test.zzz", "wb");
> fprintf( _outfile, "%1c", (char)10&0xFF);
No. If _outfile is !=NULL after fopen there is no visible problem.
In _my_ WinDOS-Box this program
#include <stdio.h>
int main()
{
FILE *_outfile = fopen("test.zzz", "wb");
fprintf( _outfile, "%1c", (char)10&0xFF);
fclose(_outfile);
return 0;
}
produces a file test.zzz containing one byte with the value 10. What
happens on your system ? What is blowing you up ? How did you verify
that fprintf "doesn't work" ? Please give details.
I think you may have been bitten by something else which is not in the
code you posted.
> Do you have hardcoding technique to stripe the 13 in front of control key
Huh ? Which 13 in front of which control key ???
Regards
Horst
- Raw text -