|
RSeries astromech firmware
|
|
Go to the documentation of this file.
4 int atoi(
const char* cmd,
int numdigits)
7 for (
int i = 0; i < numdigits; i++)
8 result = result*10 + (cmd[i]-
'0');
12 int32_t
strtol(
const char* cmd,
const char** endptr)
23 result = result*10L + (*cmd-
'0');
27 return (sign) ? -result : result;
30 uint32_t
strtolu(
const char* cmd,
const char** endptr)
35 result = result*10L + (*cmd-
'0');
42 uint32_t
strtolu(
char* cmd,
char** endptr)
47 result = result*10L + (*cmd-
'0');
56 size_t len = strlen(str);
57 if (strncmp(cmd, str, len) == 0)
67 size_t len = strlen(str);
68 if (strncmp(cmd, str, len) == 0)
78 size_t len = strlen_P((
const char*)str);
79 if (strncmp_P(cmd, (
const char*)str, len) == 0)
bool startswith(const char *&cmd, const char *str)
Definition: StringUtils.h:54
uint32_t strtolu(const char *cmd, const char **endptr)
Definition: StringUtils.h:30
int32_t strtol(const char *cmd, const char **endptr)
Definition: StringUtils.h:12
const typedef __FlashStringHelper * PROGMEMString
Definition: ReelTwo.h:235
bool startswith_P(const char *&cmd, PROGMEMString str)
Definition: StringUtils.h:76
int atoi(const char *cmd, int numdigits)
Definition: StringUtils.h:4