11 # define MIN(a, b) (a > b ? b : a) 16 if(s == NULL)
return 0;
19 char digits[] =
"0123456789";
22 for(i = 0; i < len; i++)
24 if(i == 0 && s[i] ==
'-')
continue;
25 if(dot > 0 && s[i] ==
'.')
30 else if(strchr(digits, s[i]) != NULL)
40 if(s == NULL)
return 0;
long double char_to_double(const char *s, int len)
int _len(const char *s, char m)
#define str_len(s)
Shorthand for counting '\0' terminating strings. See _len for more info.
short int check_double(const char *s, int len)
unsigned long long char_to_int(const char *s, int i, uint8_t base)