nRF Connect SDK API 0.1.0
|
int util_str_to_int | ( | const char * | str, |
int | base, | ||
int * | output | ||
) |
convert string to integer
[in] | str | A string containing the representation of an integral number. |
[in] | base | The base, which must be between 2 and 36 inclusive or the special value 0. |
[out] | output | The converted integral number as a long int value. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |