Converts a string representing a decimal value to an integer. The StrToLong macro is identical to this function.
Syntax
int StrToInt( LPCTSTR lpSrc
);
Parameters
lpSrc
A pointer to the null-terminated string to be converted. A valid string representing a decimal value contains only the characters 0-9 and must have the following form to be parsed successfully.
(optional white space)(optional sign)(one or more decimal digits)
The optional sign can be the character '-' or '+'; if omitted, the sign is assumed to be positive.
Return Value
Returns the int value represented by lpSrc. For instance, the string "123" returns the integer value 123.
Remarks
If the string pointed to by lpSrc contains an invalid character, that character is considered the end of the string to be converted and the remainder is ignored. For instance, given the invalid decimal string "12b34", StrToInt only recognizes "12" and returns that integer value.
Function Information
Minimum DLL Version shlwapi.dll version 4.71 or later
Custom Implementation No
Header shlwapi.h
Import library shlwapi.lib
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
Unicode Implemented as ANSI and Unicode versions.