get_palette (3) - Linux Manuals
get_palette: Retrieves the entire palette of 256 colors. Allegro game programming library.
NAME
get_palette - Retrieves the entire palette of 256 colors. Allegro game programming library.SYNOPSIS
#include <allegro.h>
DESCRIPTION
Retrieves the entire palette of 256 colors. You should provide an array of 256 RGB structures to store it in. Example:
PALETTE pal; ... get_palette(pal);