MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hexDigitValue

Function hexDigitValue

modules/dasSQLITE/sqlite/shell.c:877–882  ·  view source on GitHub ↗

** Return the value of a hexadecimal digit. Return -1 if the input ** is not a hex digit. */

Source from the content-addressed store, hash-verified

875** is not a hex digit.
876*/
877static int hexDigitValue(char c){
878 if( c>='0' && c<='9' ) return c - '0';
879 if( c>='a' && c<='f' ) return c - 'a' + 10;
880 if( c>='A' && c<='F' ) return c - 'A' + 10;
881 return -1;
882}
883
884/*
885** Interpret zArg as an integer value, possibly with suffixes.

Callers 2

integerValueFunction · 0.85
booleanValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected