int CommString::str_to_int(const std::string &str)

{

int ivalue = 0;

sscanf(str.c_str(), "%d", &ivalue);

return ivalue;

}