libcoap 4.3.1
CoAP Debug API

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...
 

Detailed Description

Internal API for CoAP debug functions.

Function Documentation

◆ coap_print_hex()

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

Parameters
dstThe output buffer where to write the hexadecimal string. The buffer size must at least len * 2 bytes.
srcThe source data to encode.
lenThe number of bytes from src to encode.