3 int dec_to_int(char *src, char **dst)
7 src = skip_non_numbers(src);
12 *dst = skip_numbers(src);
18 long long dec_to_longlong(char *src, char **dst)
22 src = skip_non_numbers(src);
27 *dst = skip_numbers(src);
33 float dec_to_float(char *src, char **dst)
37 src = skip_non_numbers(src);
42 *dst = skip_float_numbers(src);
49 * Copy white space separated stirng from *src to *word
52 * dst: place where store the end of word pointer from source string
53 * word: destination where to copy the string
54 * size: maximum size of bytes to copy to the output buffer
56 * return the number of bytes copied
59 int get_word(char *src, char **dst, char *word, int size)
62 while(((*src == ' ') || (*src == '\t') || (*src == '\n')) && *src)
65 while(((*src != ' ') && (*src != '\t') && (*src != '\n')) && *src && (ret < (size - 1))) {