nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ util_str_to_int()

int util_str_to_int ( const char * str,
int base,
int * output )

convert string to integer

Parameters
[in]strA string containing the representation of an integral number.
[in]baseThe base, which must be between 2 and 36 inclusive or the special value 0.
[out]outputThe converted integral number as a long int value.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.