int j, count, n_red, max;
const char *alias;
float pick[100];
/* select the "palette" definition */
j = cdds_scanf("palette", "");
/* count the number of colors */
count = cdds_key(NULL);
/* find a "reddish" token */
n_red = cdds_key("scarlet crimson cherry");
/* retrieve the reddish "alias" */
j = cdds_scant(NULL, &alias);
/* count and retrieve "depth_picks" */
if(! cdds_scanf("depth_picks", "") {
max = cdds_key(NULL);
for(n = 0; n < max; n++)
cdds_scanf(NULL, "%f", pick + n);
}
cdds_dict Select DDS dictionary and mode
cdds_scanv Retrieve value from scan dictionary