nRF Connect SDK API 0.1.0
|
int hexstr2hex | ( | const char * | in, |
size_t | in_len, | ||
unsigned char * | out, | ||
size_t | out_len | ||
) |
Convert hex string into hex Example: in = {'D', 'E', 'A', 'D'} -> out = {0xDE, 0xAD}.
[in] | in | Hex string buffer to convert |
[in] | in_len | Input buffer length |
[out] | out | Hex buffer for the output |
[in] | out_len | Hex buffer length, shall be at least (in_len / 2) |