3 int dec_to_int(char *src, char **dst)
7 src = skip_non_numbers(src);
12 while(((*src >= '0') && (*src <= '9')) && *src)
20 long long dec_to_longlong(char *src, char **dst)
24 src = skip_non_numbers(src);
29 while(((*src >= '0') && (*src <= '9')) && *src)
37 float dec_to_float(char *src, char **dst)
41 src = skip_non_numbers(src);
46 while((((*src >= '0') && (*src <= '9')) || (*src =='.')) && *src)
55 * Copy white space separated stirng from *src to *word
58 * dst: place where store the end of word pointer from source string
59 * word: destination where to copy the string
60 * size: maximum size of bytes to copy to the output buffer
62 * return the number of bytes copied
65 int get_word(char *src, char **dst, char *word, int size)
68 while(((*src == ' ') || (*src == '\t') || (*src == '\n')) && *src)
71 while(((*src != ' ') && (*src != '\t') && (*src != '\n')) && *src && (ret < (size - 1))) {