mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
[DISKPART] Improve the conversion of numeric command parameters
This commit is contained in:
parent
72087c1e3a
commit
8476ae6ed5
4 changed files with 64 additions and 29 deletions
|
@ -10,6 +10,28 @@
|
|||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
BOOL
|
||||
IsDecString(
|
||||
_In_ PWSTR pszDecString)
|
||||
{
|
||||
PWSTR ptr;
|
||||
|
||||
if ((pszDecString == NULL) || (*pszDecString == UNICODE_NULL))
|
||||
return FALSE;
|
||||
|
||||
ptr = pszDecString;
|
||||
while (*ptr != UNICODE_NULL)
|
||||
{
|
||||
if (!iswdigit(*ptr))
|
||||
return FALSE;
|
||||
|
||||
ptr++;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
BOOL
|
||||
IsHexString(
|
||||
_In_ PWSTR pszHexString)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue