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

◆ utoa64()

static int fl::string_functions::utoa64 ( uint64_t value,
char * sp,
int radix )
static

Definition at line 131 of file str.cpp.

131 {
132 char tmp[32]; // larger buffer for 64-bit values
133 char *tp = tmp;
134 int i;
135 uint64_t v = value;
136
137 while (v || tp == tmp) {
138 i = v % radix;
139 v = radix ? v / radix : 0;
140 if (i < 10)
141 *tp++ = i + '0';
142 else
143 *tp++ = i + 'a' - 10;
144 }
145
146 int len = tp - tmp;
147
148 while (tp > tmp)
149 *sp++ = *--tp;
150
151 return len;
152}

References utoa64().

Referenced by utoa64().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: