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

◆ isDigitInBase()

static bool fl::isDigitInBase ( char c,
int base )
static

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

55 {
56 if (base <= 10) {
57 return c >= '0' && c < ('0' + base);
58 }
59 if (c >= '0' && c <= '9') {
60 return true;
61 }
62 if (c >= 'a' && c < ('a' + base - 10)) {
63 return true;
64 }
65 if (c >= 'A' && c < ('A' + base - 10)) {
66 return true;
67 }
68 return false;
69}

Referenced by strtol(), and strtoul().

+ Here is the caller graph for this function: