/* Empty string is no good. */
return PROF_BAD_INTEGER;
errno = 0;
- ret_long = strtol (value, &end_value, 10);
+ ret_long = strtol(value, &end_value, 0);
/* Overflow or underflow. */
if ((ret_long == LONG_MIN || ret_long == LONG_MAX) && errno != 0)
/* Empty string is no good. */
return PROF_BAD_INTEGER;
errno = 0;
- ret_long = strtoul (value, &end_value, 10);
+ ret_long = strtoul(value, &end_value, 0);
/* Overflow or underflow. */
if ((ret_long == ULONG_MAX) && errno != 0)