Home
last modified time | relevance | path

Searched refs:seg (Results 1 – 3 of 3) sorted by relevance

/net-tools-2.7.6/libcoap/src/
Duri.c203 decode_segment(const unsigned char *seg, size_t length, unsigned char *buf) { in decode_segment() argument
207 if (*seg == '%') { in decode_segment()
208 *buf = (hexchar_to_dec(seg[1]) << 4) + hexchar_to_dec(seg[2]); in decode_segment()
210 seg += 2; length -= 2; in decode_segment()
212 *buf = *seg; in decode_segment()
215 ++buf; ++seg; in decode_segment()
/net-tools-2.7.6/libcoap/examples/
Dclient.c854 decode_segment(const unsigned char *seg, size_t length, unsigned char *buf) { in decode_segment() argument
858 if (*seg == '%') { in decode_segment()
859 *buf = (hexchar_to_dec(seg[1]) << 4) + hexchar_to_dec(seg[2]); in decode_segment()
861 seg += 2; length -= 2; in decode_segment()
863 *buf = *seg; in decode_segment()
866 ++buf; ++seg; in decode_segment()
/net-tools-2.7.6/
Dcoap-client.c279 RES(seg, "seg1/seg2/seg3");