Closed talregev closed 2 years ago
Compile lib for android. In android the s in auto s = strerror_r(err, buf, sizeof(buf)); is type int. So convert int to string is with std::to_string(). Also convert from char* to string is from std::to_string().
s
auto s = strerror_r(err, buf, sizeof(buf));
int
string
std::to_string()
char*
https://stackoverflow.com/questions/32629222/how-to-use-strerror-r-properly-for-android
Compile lib for android. In android the
s
inauto s = strerror_r(err, buf, sizeof(buf));
is typeint
. So convertint
tostring
is withstd::to_string()
. Also convert fromchar*
tostring
is fromstd::to_string()
.https://stackoverflow.com/questions/32629222/how-to-use-strerror-r-properly-for-android