FastLED 3.10.8
Loading...
Searching...
No Matches

◆ charToDigit()

static int fl::charToDigit ( char c)
static

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

111 {
112 if (c >= '0' && c <= '9') {
113 return c - '0';
114 }
115 if (c >= 'a' && c <= 'z') {
116 return c - 'a' + 10;
117 }
118 if (c >= 'A' && c <= 'Z') {
119 return c - 'A' + 10;
120 }
121 return 0;
122}

References FL_NO_EXCEPT.

Referenced by fl::libc_impl::strtol(), and fl::libc_impl::strtoul().

+ Here is the caller graph for this function: