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

◆ utoa32()

static int fl::string_functions::utoa32 ( uint32_t value,
char * sp,
int radix )
static

Definition at line 108 of file str.cpp.

108 {
109 char tmp[16]; // be careful with the length of the buffer
110 char *tp = tmp;
111 int i;
112 uint32_t v = value;
113
114 while (v || tp == tmp) {
115 i = v % radix;
116 v = radix ? v / radix : 0;
117 if (i < 10)
118 *tp++ = i + '0';
119 else
120 *tp++ = i + 'a' - 10;
121 }
122
123 int len = tp - tmp;
124
125 while (tp > tmp)
126 *sp++ = *--tp;
127
128 return len;
129}

References utoa32().

Referenced by utoa32().

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