allocmem() and freemem() These are system-wide memory allocation and deallocation routines. They use a memory free-list owned and managed by the system. availmem() This routine returns the number of free bytes in a specified type of memory. typeofmem() This routine returns the memory attributes of a specified memory address. copymem()/copymemquick() CopyMem() is a general purpose memory copy routine. CopyMemQuick() is an optimized version of CopyMemQuick(), but has restrictions on the size and alignment of the arguments.