C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_pg_getpalette
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _pg_getpalette function retrieves palette colors, line styles,
     fill patterns, and plot characters for all palettes. The pointer
     <palette> points to an array of palette structures that contain
     the desired palette values.
 
     The palette used by the presentation-graphics routines is
     independent of the palette used by the low-level graphics
     routines.
 
     Return Value
 
     The _pg_getpalette function returns 0 if there were no errors. It
     returns the value _BADSCREENMODE if current palettes have not been
     initialized by a previous call to _pg_setpalette.
                                    -♦-