Jan Breuer
2015-08-10 deae06da9f6a9b99b20d33d0111c8f358e38f1a8
libscpi/src/utils.c
@@ -156,6 +156,19 @@
}
/**
 * Converts string to unsigned 32bit integer representation
 * @param str   string value
 * @param val   32bit integer result
 * @return      number of bytes used in string
 */
size_t strToULong(const char * str, uint32_t * val, int8_t base) {
    char * endptr;
    *val = strtoul(str, &endptr, base);
    return endptr - str;
}
/**
 * Converts string to double representation
 * @param str   string value
 * @param val   double result