delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/04/18/11:36:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <46253901.1CE88195@yahoo.com>
Date: Tue, 17 Apr 2007 17:15:45 -0400
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research http://cbfalconer.home.att.net
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: missing ANSI functions in memory.h
References: <mo2dnaEnpYOFn7jbnZ2dnUVZ_segnZ2d AT comcast DOT com> <58kegmF2gqrdnU1 AT mid DOT individual DOT net> <6fidncRj4KsWiLjbnZ2dnUVZ_vfinZ2d AT comcast DOT com>
Lines: 41
NNTP-Posting-Date: 17 Apr 2007 20:27:06 GMT
X-Complaints-To: abuse AT teranews DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jim Michaels wrote:
> Martin Ambuhl wrote:
>> Jim Michaels wrote:
>
... snip ...
>>
>> There is no memory.h (or <memory.h>) in C.  If you ever had one,
>> it was an implementation-specific extension.
>>
>>> malloc is defined, calloc is defined, free is defined.  but where
>>> are the other functions like memset and memcpy?
>>
>> The malloc, calloc, realloc, free family is prototyped in
>> <stdlib.h> memset and memcpy are prototyped in <string.h>
>>
>>> The documentation I saw in MSDN said it was an ANSI function.
>>
>> They are ISO (and ANSI) functions, but
>>
>>> when I #included <memory.h>
>>
>> <memory.h> is not.
>>
... snip ...
> 
> hmm.  I am using DJGPP. this is what rhide compiles .cc files with
> by default.  I know of no way to fix this.  should it be using gxx
> instead?  I don't know the difference.

Don't include memory.h.  Include <stdlib.h>

-- 
 <http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
 <http://www.securityfocus.com/columnists/423>
 <http://www.aaxnet.com/editor/edit043.html>
 
 "A man who is right every time is not likely to do very much."
                           -- Francis Crick, co-discover of DNA
 "There is nothing more amazing than stupidity in action."
                                             -- Thomas Matthews


-- 
Posted via a free Usenet account from http://www.teranews.com

- Raw text -


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