You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
470 B
C++
14 lines
470 B
C++
3 years ago
|
#ifndef APP_UTILS_HPP_
|
||
|
#define APP_UTILS_HPP_
|
||
|
|
||
|
namespace Util {
|
||
|
/*!
|
||
|
@brief Convert a C string to a long value, which is returned in n.
|
||
|
Returns true if the conversion is successful, else false.
|
||
|
n is not modified if the conversion is unsuccessful. See strtol(2).
|
||
|
*/
|
||
|
bool strtol(const char* nptr, long& n);
|
||
|
} // namespace Util
|
||
|
|
||
|
#endif // #ifndef UTILS_HPP_
|