missing ANSI functions in memory.h



I tried to find the proper memory.h in all the files I could, but I didn't seem to find anything.

malloc is defined, calloc is defined, free is defined. but where are the other functions like memset and memcpy?

The documentation I saw in MSDN said it was an ANSI function.
when I #included <memory.h> and compiled with DJGPP's gcc, it gave me the error:
In copy constructor 'var_array::var_array(const var_array&)':
124.cc(20) Error: error: 'memcpy' was not declared in this scope

in MS's implementation it was defined in both memory.h and string.h

I am not sure what the ANSI standard did say however.
.



Relevant Pages

  • Re: Cached file read performance
    ... 50000 malloc in 0.5367s ... 50000 memcpy of 8192 byte blocks in 1.0887s ... printf("out of memory initializing destination array!\n"); ... numblocks, blocksz, elapsed); ...
    (freebsd-performance)
  • Re: Using malloc() with driver code ?!
    ... I am using memcpy inside my driver. ... difference between malloc() and memcpy? ... > Walter Oney, Consulting and Training ...
    (microsoft.public.development.device.drivers)
  • Re: Problem with malloc and memcpy
    ... Also thanks to Fletcher. ... After playing with malloc and memcpy and not ...
    (comp.unix.programmer)
  • Re: More questions on realloc
    ... size1 bytes in length? ... implemented with malloc, and no other memory management call? ... You'd need memcpy and free. ...
    (comp.lang.c)