made parseInt public

This commit is contained in:
john30
2014-11-20 22:29:44 +01:00
parent 15cbb9bbd9
commit b3a96cc2c0
2 changed files with 11 additions and 8 deletions
-8
View File
@@ -100,14 +100,6 @@ static const char* dayNames[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
#define NULL_VALUE "-"
#define MAX_POS 16
/**
* @brief Parse an unsigned int value.
* @param str the string to parse.
* @param base the numerical base.
* @param minValue the minimum resulting value.
* @param maxValue the maximum resulting value.
* @param result the variable in which to store an error code when parsing failed or the value is out of bounds.
*/
unsigned int parseInt(const char* str, int base, const unsigned int minValue, const unsigned int maxValue, result_t& result) {
char* strEnd = NULL;
+11
View File
@@ -64,6 +64,17 @@ typedef struct {
} dataType_t;
/**
* @brief Parse an unsigned int value.
* @param str the string to parse.
* @param base the numerical base.
* @param minValue the minimum resulting value.
* @param maxValue the maximum resulting value.
* @param result the variable in which to store an error code when parsing failed or the value is out of bounds.
*/
unsigned int parseInt(const char* str, int base, const unsigned int minValue, const unsigned int maxValue, result_t& result);
class SingleDataField;
/**