MCPcopy Create free account
hub / github.com/F-Stack/f-stack / is_hex_digit

Function is_hex_digit

app/redis-6.2.6/src/sds.c:953–956  ·  view source on GitHub ↗

Helper function for sdssplitargs() that returns non zero if 'c' * is a valid hex digit. */

Source from the content-addressed store, hash-verified

951/* Helper function for sdssplitargs() that returns non zero if 'c'
952 * is a valid hex digit. */
953int 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 */

Callers 1

sdssplitargsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected