Mail Archives: djgpp/1997/08/20/11:08:25
On Wed, 20 Aug 1997, daisuke wrote:
> I use gcc for MS-DOS ported by you, and I am facing problem. I found
> that atoi function and fgets function working starangely. I used atoi,
> but it returns incorrect value. The argument was a character
> representing one digit integer, but it returns four digit integer. For
> fgets function, file pointer increment is incorrect. It read a string
> containing 70 character, but increment was only 2 bytes. Those
> functions sometimes work properly, sometimes don't.
Please post a short program which exhibits these problems.
- Raw text -