solaris port:

std:: of exit() and atoi, atof
This commit is contained in:
Harry Moffat 2006-12-14 18:11:13 +00:00
parent 798e774cf3
commit 3899dfcdf6
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ namespace Cantera {
/// and reimplement this method.
virtual void error(const std::string& msg) {
std::cerr << msg << std::endl;
exit(-1);
std::exit(-1);
}
/// Return an integer specifying the application environment.

View file

@ -31,11 +31,11 @@ namespace Cantera {
std::string getFileName(const std::string& path);
inline int intValue(std::string val) {
return atoi(stripws(val).c_str());
return std::atoi(stripws(val).c_str());
}
inline doublereal fpValue(std::string val) {
return atof(stripws(val).c_str());
return std::atof(stripws(val).c_str());
}
std::string wrapString(const std::string& s, int len=70);