[RSP] Remove _WIN32-isms from body def. to AsciiToHex.
This commit is contained in:
parent
9b5f429a97
commit
2a13b62d0f
|
@ -98,14 +98,15 @@ const char * AboutMsg ( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
/************ Functions ***********/
|
/************ Functions ***********/
|
||||||
DWORD AsciiToHex (char * HexValue)
|
uint32_t AsciiToHex(char * HexValue)
|
||||||
{
|
{
|
||||||
DWORD Value = 0;
|
size_t Finish, Count;
|
||||||
|
uint32_t Value = 0;
|
||||||
|
|
||||||
size_t Finish = strlen(HexValue);
|
Finish = strlen(HexValue);
|
||||||
if (Finish > 8 ) { Finish = 8; }
|
if (Finish > 8 ) { Finish = 8; }
|
||||||
|
|
||||||
for (size_t Count = 0; Count < Finish; Count++)
|
for (Count = 0; Count < Finish; Count++)
|
||||||
{
|
{
|
||||||
Value = (Value << 4);
|
Value = (Value << 4);
|
||||||
switch( HexValue[Count] )
|
switch( HexValue[Count] )
|
||||||
|
|
Loading…
Reference in New Issue