Home
last modified time | relevance | path

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

/net-tools-3.6.0/libcoap/examples/
Dcoap-rd.c399 unsigned char *loc; in hnd_post_rd() local
404 loc = (unsigned char *)coap_malloc(LOCSIZE); in hnd_post_rd()
405 if (!loc) { in hnd_post_rd()
409 memcpy(loc, RD_ROOT_STR, RD_ROOT_SIZE); in hnd_post_rd()
412 loc[loc_size++] = '/'; in hnd_post_rd()
428 memcpy(loc + loc_size, h.s, min(h.length, LOCSIZE - loc_size - 1)); in hnd_post_rd()
432 loc[loc_size++] = '-'; in hnd_post_rd()
433 memcpy((char *)(loc + loc_size), in hnd_post_rd()
440 snprintf((char *)(loc + loc_size), LOCSIZE - loc_size - 1, in hnd_post_rd()
445 loc[loc_size++] = '-'; in hnd_post_rd()
[all …]