Solar_OS API Reference
You are here:
Main ->
Utility API
Str_To_Val_Hex PROC STDCALL
ARG @@str_ptr:dword
ARG @@str_size:dword
This function will convert a string containing
ASCII representation of
an hexa_decimal number into the number value itself.
Arguments:
Argument |
Type |
Description |
str_ptr
|
dword
|
pointer to the source string for conversion
|
str_size
|
dword
|
size of the source string
|
Returns:
- EAX = value of the string
- CARRY Flag Set if OK
- CARRY Flag Reset if there was an error during conversion
Posible Errors:
- source string contains invalid number digits
- source string is NULL
Remarks:
-
No check is made for memory bounds but source size will not be exceeded
-
versions released on dates <= 2006_07_12 do not setup carry flag corectly
See Also
Str_To_Val_Dec