Header File
stdlib.h
Category
Conversion Routines, Math Routines
Prototype
__int64 _atoi64(const char *s);
__int64 _wtoi64(const wchar_t *s);
Description
Converts a string to an __int64.
The syntax of the string must be:
__int64 ::= [isspace]* [sign] digit [digit]*
Only decimal integers are acceptable.
_wtoi64 is the wide-character version. It converts a wide-character string to an __int64.
In this function, the first unrecognized character ends the conversion. There are no provisions for overflow in atoi (results are undefined). There is no defined method to return an error indication to the caller. The result is undefined if the input string is invalid.
Return Value
Returns the converted value of the input string. If the string cannot be converted to a __int64, the return value is 0.
Portability
|
POSIX |
Win32 |
ANSI C |
ANSI C++ |
_atoi64 |
|
+ |
|
|
_wtoi64 |
|
+ |
|
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|