libcoap 4.3.1
|
Internal API for CoAP debug functions. More...
Functions | |
void | coap_print_hex (char *dst, const void *src, size_t len) |
Prints len bytes from src as hexadecimal digit sequence into dst . More... | |
Internal API for CoAP debug functions.
void coap_print_hex | ( | char * | dst, |
const void * | src, | ||
size_t | len | ||
) |
Prints len
bytes from src
as hexadecimal digit sequence into dst
.
As each character is encoded in two hexadecimal digits, dst
must provide space for at least len
* 2 characters.
Internal function
dst | The output buffer where to write the hexadecimal string. The buffer size must at least len * 2 bytes. |
src | The source data to encode. |
len | The number of bytes from src to encode. |