Go to the source code of this file.
|
unsigned long | hex_string (char *to, const char *from, unsigned long length) |
| Convert byte array to hex string. More...
|
|
unsigned long | unhex_string (const char *first, const char *last, char *output) |
| Convert hex string to byte array. More...
|
|
◆ hex_string()
unsigned long hex_string |
( |
char * |
to, |
|
|
const char * |
from, |
|
|
unsigned long |
length |
|
) |
| |
Convert byte array to hex string.
- Parameters
-
[out] | to | Output buffer |
[in] | from | Input byte array |
[in] | length | Length of input |
- Returns
- Length of output string
◆ unhex_string()
unsigned long unhex_string |
( |
const char * |
first, |
|
|
const char * |
last, |
|
|
char * |
output |
|
) |
| |
Convert hex string to byte array.
- Parameters
-
[in] | first | Pointer to first element of range to convert |
[in] | last | Pointer to one-after-last element of range to convert |
[out] | output | Beginning of destination range. |
- Returns
- Length of output string