Date: Mon, 5 Jan 1998 19:16:21 +0200 (IST) From: Eli Zaretskii To: "Mr. Lin" cc: djgpp AT delorie DOT com Subject: Re: Problem with function biosdisk() ... unexplained ! In-Reply-To: <68q9oq$1hj$1@news.tm.net.my> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 5 Jan 1998, Mr. Lin wrote: > I was experimenting with the calls biosdisk() and _bios_disk() from DJGPP > 2.0. It seems like both of these calls gives different return > values and I can't seem to explain it. Could it be a bug ?? I think the bug is in your code. The following line: > diskInfo.buffer = &recordBuffer ; should have said this instead: > diskInfo.buffer = recordBuffer ; In other words, if you need an address of a buffer, pass its name, not the address of its name.