The functions in this category provide wrappers around the system-provided
malloc, free and friends.
The reasons for using these functions are as follows:
To provide consistant error messages;
to aid in porting;
To aid in debugging.
If the compile-time manifest MALLOCTRACE is defined (for example, with \*[+c]\-DMALLOCTRACE\*[-c]=1 as a compiler option), these routines provide tracing output to standard error which can be used to detect memory leaks.
To provide consistant error messages;
to aid in porting;
To aid in debugging.
If the compile-time manifest MALLOCTRACE is defined (for example, with \*[+c]\-DMALLOCTRACE\*[-c]=1 as a compiler option), these routines provide tracing output to standard error which can be used to detect memory leaks.