Lines Matching defs:value_str
79 static int get_value64(char *value_str, uint64_t *value, boolean_t hex_only);
841 get_value64(char *value_str, uint64_t *value, boolean_t hex_only)
852 if ((value_str == NULL) || (strlen(value_str) == 0)) {
857 if (!hex_only && (value_str[0] != '0')) {
859 string_to_check = value_str;
860 } else if ((value_str[1] == 'X') || (value_str[1] == 'x')) {
862 string_to_check = &value_str[2]; /* Ignore 0x of hex */
865 string_to_check = value_str; /* Hex number, no 0x prefix */
868 string_to_check = value_str;
883 *value = strtoull(value_str, NULL, (hex_only ? 16 : 0));