HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)
m
malloc(3C) malloc(3C)
COMPATIBILITY
The only external difference between the old malloc(3X) allocator and the malloc(3C) allocator is that the
old allocator would return a NULL pointer for a request of zero bytes. The malloc(3C) allocator returns a
valid memory address. This is not a concern for most applications.
By default, SBA (Small Block Allocation) is turned on for Itanium-based systems and is turned off for PA-
RISC systems. This was due to performance concerns. Please refer to the EXTERNAL INFLUENCES sec-
tion of this man page for details.
SEE ALSO
brk(2), errno(2), thread_safety(5).
STANDARDS CONFORMANCE
malloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
calloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
free(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
mallinfo() : SVID2, XPG2
mallopt(): SVID2, SVID3, XPG2
realloc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C
724 Hewlett-Packard Company − 5 − HP-UX 11i Version 2: December 2007 Update