Date: Wed, 20 Aug 1997 18:06:28 +0300 (IDT) From: Eli Zaretskii To: daisuke cc: djgpp AT delorie DOT com Subject: Re: bug report? In-Reply-To: <33FAB80D.6186@nv.aif.or.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.