RtlCharToInteger function
Applies to: desktop apps only
Converts a character string to an integer.
Syntax
NTSTATUS WINAPI RtlCharToInteger( __in PCSZ String, __in_opt ULONG Base, __out PULONG Value );
Parameters
- String [in]
-
A pointer to the string to convert. The format of the string is as follows:
[whitespace] [{+ | -}] [0 [{x | o | b}]] [digits]
- Base [in, optional]
-
ULONG that contains the number base to use for the conversion, such as base 10. Only base 2, 8, 10, and 16 are supported.
- Value [out]
-
A pointer to a ULONG that receives the integer that resulted from the conversion.
Return value
If the function succeeds, the function returns STATUS_SUCCESS.
Remarks
When converting strings to integers the preferred function to use is strtol, wcstol.
There is no import library for this function. Use GetProcAddress rather than linking to the function directly.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
DLL |
|
Build date: 4/6/2012