Helper function for sdssplitargs() that returns non zero if 'c' * is a valid hex digit. */
| 951 | /* Helper function for sdssplitargs() that returns non zero if 'c' |
| 952 | * is a valid hex digit. */ |
| 953 | int is_hex_digit(char c) { |
| 954 | return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || |
| 955 | (c >= 'A' && c <= 'F'); |
| 956 | } |
| 957 | |
| 958 | /* Helper function for sdssplitargs() that converts a hex digit into an |
| 959 | * integer from 0 to 15 */ |