solaris port:
std:: of exit() and atoi, atof
This commit is contained in:
parent
798e774cf3
commit
3899dfcdf6
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue