/**
* @private
*
- * Convert a string representation of a numeric value to a long integer. The
+ * Convert a string representation of a numeric value (base 10) to a long integer. The
* conversion is strict and will fail if the complete string does not represent
* a valid long integer. The function sets errno according to the details of the
* failure.
* @param str The string representation to convert.
* @param ret Pointer to long where the result of the conversion will be stored.
*
- * @return SR_OK if conversion is successful, otherwise SR_ERR.
+ * @retval SR_OK Conversion successful.
+ * @retval SR_ERR Failure.
*
* @since 0.3.0
*/
char *endptr = NULL;
errno = 0;
- tmp = strtol(str, &endptr, 0);
+ tmp = strtol(str, &endptr, 10);
if (!endptr || *endptr || errno) {
if (!errno)
/**
* @private
*
- * Convert a string representation of a numeric value to an integer. The
+ * Convert a string representation of a numeric value (base 10) to an integer. The
* conversion is strict and will fail if the complete string does not represent
* a valid integer. The function sets errno according to the details of the
* failure.
* @param str The string representation to convert.
* @param ret Pointer to int where the result of the conversion will be stored.
*
- * @return SR_OK if conversion is successful, otherwise SR_ERR.
+ * @retval SR_OK Conversion successful.
+ * @retval SR_ERR Failure.
*
* @since 0.3.0
*/
* @param str The string representation to convert.
* @param ret Pointer to double where the result of the conversion will be stored.
*
- * @return SR_OK if conversion is successful, otherwise SR_ERR.
+ * @retval SR_OK Conversion successful.
+ * @retval SR_ERR Failure.
*
* @since 0.3.0
*/
* @param str The string representation to convert.
* @param ret Pointer to float where the result of the conversion will be stored.
*
- * @return SR_OK if conversion is successful, otherwise SR_ERR.
+ * @retval SR_OK Conversion successful.
+ * @retval SR_ERR Failure.
*
* @since 0.3.0
*/
* @param str The string representation to convert.
* @param ret Pointer to float where the result of the conversion will be stored.
*
- * @return SR_OK if conversion is successful, otherwise SR_ERR.
+ * @retval SR_OK Conversion successful.
+ * @retval SR_ERR Failure.
*
* @since 0.3.0
*/