Re: Functions for coversion strings to intergers
What I meant is there is no difference in the result between the "0"toggle quoted message Show quoted text
string, and "hhh" string. Both would get translated to the number
And something like "16dfgdf" would get translated to 16.
But I think I've found a C library function, that is the base for
these StrDecimalToUintnS/StrDecimalToUint64S functions. It is
And in the case of strtol it is a caller responsibility to check for
all the possible error cases via comparing first and second argument:
RETURN_STATUS Status = StrDecimalToUintnS(Argv[Index], &End, &MyVar);
if ((Status != RETURN_SUCCESS) || (Argv[Index] == End) || (*End != 0))
Print(L"Error! incorrect number\n");
So I think that clears my question.
Sorry to bother you.
On Wed, Jul 21, 2021 at 9:23 PM Andrew Fish <afish@...> wrote: