Mail Archives: djgpp/2007/04/18/11:36:19
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 -