MCPcopy Create free account
hub / github.com/audacity/audacity / hexDigitValue

Function hexDigitValue

lib-src/sqlite/shell.c:750–755  ·  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

748** is not a hex digit.
749*/
750static int hexDigitValue(char c){
751 if( c>='0' && c<='9' ) return c - '0';
752 if( c>='a' && c<='f' ) return c - 'a' + 10;
753 if( c>='A' && c<='F' ) return c - 'A' + 10;
754 return -1;
755}
756
757/*
758** 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