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

◆ parseInt() [1/2]

int fl::parseInt ( const char * str)

Parse an integer from a null-terminated string.

Parameters
strThe null-terminated string to parse
Returns
The parsed integer value (0 if parsing fails)

Definition at line 287 of file charconv.cpp.hpp.

287 {
288 // Calculate length manually to avoid strlen dependency
289 fl::size len = 0;
290 while (str[len] != '\0') {
291 len++;
292 }
293 return parseInt(str, len);
294}
int parseInt(const char *str, fl::size len)
Parse an integer from a character buffer.

References parseInt().

+ Here is the call graph for this function: