From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: dosmemgetb error Date: Wed, 08 Jan 1997 21:21:55 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 24 Message-ID: <32D48073.2039@cs.com> References: <5avui6$1gr$1 AT mirv DOT unsw DOT edu DOT au> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: DJGPP Workers Mailing List To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Abbas Imani wrote: > > I am trying to use dosmemgetb in my program. My code is almost the same as > the code in the libc.a refrence except that I have changed the names of > the varaibles used. > > dosmemgetb(0xd0000, 10, &mem_buf); Argh! It's a typo in the libc docs, of all things. That should be _dosmemgetb (note the leading underscore). I just checked and all the _dosmem* functions have incorrect examples in the docs. Oh, well - nobody's perfect. I guess it's time for another bug report. :) BTW, you may have noted that while the examples were wrong, the function prototype listed at the beginning did have the leading underscore. [CC'ed to djgpp-workers] -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------