Mail Archives: djgpp/1997/01/08/00:31:19
Dear everyone
I faced a problem while using djgpp in dosbox on WindowsNT 3.51.
I wrote a program as follows and compiled with gcc under go32.
#include<stdio.h>
#include<stdlib.h>
void main( void )
{
printf("hello\n");
}
And when I run this program ( named as a.exe ) as follows ...
C:\> a >> 1.txt
It does not work correctly but it works as ' a > 1.txt ' instead.
And if I modify this program as follows
#include<stdio.h>
#include<stdlib.h>
void main( void )
{
fseek(stdout,0L,SEEK_END);
printf("hello\n");
}
it works correctly.
This problem does not occur on DOS.
Please help !!!
Koichi Kodama
Aichi University of Education
kkodama AT auecc DOT aichi-edu DOT ac DOT jp
- Raw text -