summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-24 13:41:58 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-30 14:21:37 (GMT)
commit8bf5a80b9668a31b85aaac00d1682228bbbbac5e (patch)
tree4eb69d8d006c51ae50d6290d401afad0b198e932 /Source/cmSystemTools.h
parentdffc307c81220ffc243abc3b87ecfd694bd4cd35 (diff)
downloadCMake-8bf5a80b9668a31b85aaac00d1682228bbbbac5e.zip
CMake-8bf5a80b9668a31b85aaac00d1682228bbbbac5e.tar.gz
CMake-8bf5a80b9668a31b85aaac00d1682228bbbbac5e.tar.bz2
cmSystemTools: Add StringToULong helper
Convert a string to an unsigned integer and reject any extra input.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 6feb6c5..8ebb4e3 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -469,6 +469,7 @@ public:
/** Convert string to long. Expected that the whole string is an integer */
static bool StringToLong(const char* str, long* value);
+ static bool StringToULong(const char* str, unsigned long* value);
#ifdef _WIN32
struct WindowsFileRetry