3 int dec_to_int(char *src, char **dst)
7 while(((*src < '0') || (*src > '9')) && *src)
13 while(((*src >= '0') && (*src <= '9')) && *src)
21 long long dec_to_longlong(char *src, char **dst)
25 while(((*src < '0') || (*src > '9')) && *src)
31 while(((*src >= '0') && (*src <= '9')) && *src)
39 float dec_to_float(char *src, char **dst)
43 while(((*src < '0') || (*src > '9')) && *src)
49 while((((*src >= '0') && (*src <= '9')) || (*src =='.')) && *src)
58 * Copy white space separated stirng from *src to *word
61 * dst: place where store the end of word pointer from source string
62 * word: destination where to copy the string
63 * size: maximum size of bytes to copy to the output buffer
65 * return the number of bytes copied
68 int get_word(char *src, char **dst, char *word, int size)
71 while(((*src == ' ') || (*src == '\t') || (*src == '\n')) && *src)
74 while(((*src != ' ') && (*src != '\t') && (*src != '\n')) && *src && (ret < (size - 1))) {