The
XAllocStandardColormap()
function allocates and returns a pointer to a
XStandardColormap
structure.
Note that all fields in the
XStandardColormap
structure are initially set to zero.
If insufficient memory is available,
XAllocStandardColormap()
returns NULL.
To free the memory allocated to this structure,
use
XFree().