#include <X11/Xmu/StdCmap.h>Status XmuCreateColormap(dpy, colormap) Display *dpy; XStandardColormap *colormap;
To create any one colormap that is described by an XStandardColormap structure, use XmuCreateColormap.
This function returns 0 on failure, and non-zero on success. The base_pixel of the colormap is set on success. Resources created by this function are not made permanent. No argument error checking is provided; use at your own risk.
All colormaps are created with read-only allocations, with the exception of read-only allocations of colors failing to return the expected pixel value, and these are individually defined as read/write allocations. This is done so that all the cells defined in the colormap are contiguous for use in image processing. This typically happens with White and Black in the default map.
Colormaps of static visuals are considered to be successfully created if the
map of the static visual matches the definition given in the standard
colormap structure.