StrToIntExA(3w)

StrToIntExA3w

Usage

BOOL StrToIntExA
(
LPCSTR lpszStr,
DWORD dwFlags,
LPINT lpiRet
)

Overview

Read an integer from a string.

Params

lpszStr [In] String to read integer from.

dwFlags [In] Flags controlling the conversion.

lpiRet [Out] Destination for read integer.

Returns

Success: TRUE. lpiRet contains the integer value represented by the string.

Failure: FALSE, if the string is invalid, or no number is present.

Notes

Leading whitespace, '-' and '+' are allowed before the number. If dwFlags includes STIF_SUPPORT_HEX, hexadecimal numbers are allowed, if preceded by '0x'. If this flag is not set, or there is no '0x' prefix, the string is treated as a decimal string. A leading '-' is ignored for hexadecimal numbers.

Implementation

Declared in "shlwapi.h".

Implemented in "dlls/shlwapi/string.c".

Debug channel "shell".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.