Index: vm/os.h |
=================================================================== |
--- vm/os.h (revision 9558) |
+++ vm/os.h (working copy) |
@@ -82,6 +82,13 @@ |
const char* format, |
va_list args); |
+ // Converts a C string to a 64 bit value. |
+ // Returns false if it is unable to convert the string to a 64 bit value, |
+ // the failure could be because of underflow/overflow or invalid characters. |
+ // On success the function returns true and 'value' contains the converted |
+ // value. |
sra1
2012/07/11 21:46:43
Please document the valid inputs. E.g., one might
siva
2012/07/12 18:28:23
I have renamed it as 'StringToInteger' to avoid an
|
+ static bool Strtoll(const char* str, int64_t* value); |
+ |
// Initialize the OS class. |
static void InitOnce(); |