delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/09/05:48:29

From: "John M. Aldrich" <fighteer AT cs DOT com>
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: <Pine DOT GSO DOT 3 DOT 95 DOT 970107230121 DOT 27833A-100000 AT hops DOT cs DOT jhu DOT edu> <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
CC: DJGPP Workers Mailing List <djgpp-workers AT delorie DOT com>
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 |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019