Lines Matching defs:value
1318 an invalid value to the nearest allowed one.
1321 clip_value (const SANE_Option_Descriptor * opt, void * value)
1333 w = *(SANE_Word *) value;
1345 *(SANE_Word*) value = w;
1350 w = *(SANE_Word *) value;
1354 /* somewhat arbitrary... Would be better to have a default value
1357 *(SANE_Word*) value = word_list[1];
1365 len = strlen (value);
1371 if (strncasecmp (value, string_list[i], len) == 0
1378 if (strcmp (value, string_list[i]) != 0)
1380 strcpy (value, string_list[match]);
1388 strcpy(value, string_list[match]);
1390 strcpy (value, string_list[match]);
1392 strcpy (value, string_list[0]);
1400 so that the strcpy in sane_control_option / set value cannot
2677 /* we need: 4 bytes for each gamma value (3 digits + delimiter)