Listing 2: File 3dtable.h
#ifdef __cplusplus extern "C" { #endif struct rgb_color { unsigned char r, g, b; }; struct match_array { int rb, gb, bb; char *match; }; struct match_array *creatematcharray(int rbits, int gbits, int bbits, struct rgb_color *palette, int palettesize); void deletematcharray(struct match_array *table); int findcolor(struct match_array *table, struct rgb_color c); #ifdef __cplusplus }; #endif /* End of File */