Merge pull request #706 from dequis/parse-uint

Add parse_uint function to improve integer overflow handling
(cherry picked from commit 31b9d115b0)
This commit is contained in:
ailin-nemui 2017-06-02 14:47:38 +02:00 committed by Ailin Nemui
commit d5bdf00ba6
4 changed files with 130 additions and 27 deletions

View file

@ -71,6 +71,7 @@ int expand_escape(const char **data);
int nearest_power(int num);
/* Returns TRUE / FALSE */
int parse_uint(const char *nptr, char **endptr, int base, guint *number);
int parse_time_interval(const char *time, int *msecs);
int parse_size(const char *size, int *bytes);