GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color_init.c
Go to the documentation of this file.
1 
2 /**********************************************************************
3  *
4  * G_init_colors (colors)
5  * struct Colors *colors structure to hold color info
6  *
7  * Initializes the color structure for subsequent calls to G_add_color_rule()
8  *********************************************************************/
9 
10 #include <grass/gis.h>
11 
12 
23 int G_init_colors(struct Colors *colors)
24 {
25  colors->version = 0;
26  colors->null_set = 0;
27  colors->undef_set = 0;
28  colors->shift = 0.0;
29  colors->invert = 0;
30  colors->cmin = 0;
31  colors->is_float = 0;
32  colors->cmax = -1;
33  colors->fixed.min = 0;
34  colors->fixed.max = -1;
35  colors->fixed.rules = NULL;
36  colors->fixed.n_rules = 0;
37  colors->fixed.lookup.active = 0;
38  colors->fixed.fp_lookup.active = 0;
39  colors->fixed.fp_lookup.nalloc = 0;
40  colors->modular.min = 0;
41  colors->modular.max = -1;
42  colors->modular.rules = NULL;
43  colors->modular.n_rules = 0;
44  colors->modular.lookup.active = 0;
45  colors->modular.fp_lookup.active = 0;
46  colors->modular.fp_lookup.nalloc = 0;
47 
48  return 0;
49 }
return NULL
Definition: dbfopen.c:1394
G_init_colors(colors)