T
Travis
I'm curious what the most reliable way to convert a char * (or a char
for that matter) to a bool is.
It's safe to assume that char * will be either '0' and or '1' and I
want the bool set accordingly.
I'm seeing stuff (from others) like this :
bool myBool = (char)atoi(myCharPtr);
for that matter) to a bool is.
It's safe to assume that char * will be either '0' and or '1' and I
want the bool set accordingly.
I'm seeing stuff (from others) like this :
bool myBool = (char)atoi(myCharPtr);