www.pudn.com > common-1.2.8.zip > memory.sgml
Memory Memory allocation and debugging functions.This set of functions is semantically similar functions to standard C library memory allocation routines. When memory debugging is enabled these functions include support to detect buffer overruns. When memory debugging is not enabled the allocation and free calls are wrappers around the standard C allocation routines, and checking routines are null ops. Memory debugging is enabled when DEBUG_MEM is defined at compilation time. On Unix systems, the configure script has a command-line option . On Win32, a memory debugging is enabled in the debug configuration.Allocates a block of memory. Semantically equivalent to malloc(). @x: size of allocation.Re-sizes a block of memory. Semantically equivalent to realloc(). @p: Pointer to block to be re-dimensioned. @x: New size.xmalloc()'s sufficient memory to store @str, copies @str into it, and returns pointer to new string. Semantically equivalent to strdup(). @str: @x: String to duplicate.@addr: @filen: @line: @p: @fp: @p: @x: