FastLED 3.9.15
Loading...
Searching...
No Matches

◆ charToDigit()

static int fl::charToDigit ( char c)
static

Definition at line 72 of file cstdlib.cpp.hpp.

72 {
73 if (c >= '0' && c <= '9') {
74 return c - '0';
75 }
76 if (c >= 'a' && c <= 'z') {
77 return c - 'a' + 10;
78 }
79 if (c >= 'A' && c <= 'Z') {
80 return c - 'A' + 10;
81 }
82 return 0;
83}

Referenced by strtol(), and strtoul().

+ Here is the caller graph for this function: