malloc
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/malloc.html
Gnulib module: malloc-posix
Portability problems fixed by Gnulib:
errno to ENOMEM on
some platforms:
mingw, MSVC 9.
Portability problems not fixed by Gnulib:
malloc (0) always returns a NULL pointer on some platforms:
AIX 5.1, OSF/1 5.1.
Extension: Gnulib provides a module ‘malloc-gnu’ that substitutes a
malloc implementation that behaves more like the glibc implementation,
regarding the result of malloc (0).