[][src]Type Definition libcoap_sys::coap_print_status_t

type coap_print_status_t = c_uint;

Status word to encode the result of conditional print or copy operations such as coap_print_link(). The lower 28 bits of coap_print_status_t are used to encode the number of characters that has actually been printed, bits 28 to 31 encode the status. When COAP_PRINT_STATUS_ERROR is set, an error occurred during output. In this case, the other bits are undefined. COAP_PRINT_STATUS_TRUNC indicates that the output is truncated, i.e. the printing would have exceeded the current buffer.