FastLED 3.10.8
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 288 of file charconv.cpp.hpp.

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

References FL_NO_EXCEPT, and parseInt().

+ Here is the call graph for this function: