Lines Matching defs:value_str
78 static int get_value64(char *value_str, uint64_t *value, boolean_t hex_only);
842 get_value64(char *value_str, uint64_t *value, boolean_t hex_only)
853 if ((value_str == NULL) || (strlen(value_str) == 0)) {
858 if (!hex_only && (value_str[0] != '0')) {
860 string_to_check = value_str;
861 } else if ((value_str[1] == 'X') || (value_str[1] == 'x')) {
863 string_to_check = &value_str[2]; /* Ignore 0x of hex */
866 string_to_check = value_str; /* Hex number, no 0x prefix */
869 string_to_check = value_str;
884 *value = strtoull(value_str, NULL, (hex_only ? 16 : 0));