Lines Matching refs:loc
399 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()
446 memcpy((char *)(loc + loc_size), in hnd_post_rd()
454 loc_size += snprintf((char *)(loc + loc_size), in hnd_post_rd()
466 r = coap_resource_init(loc, loc_size, COAP_RESOURCE_FLAGS_RELEASE_URI); in hnd_post_rd()
508 coap_hash_path(loc, loc_size, rd->key); in hnd_post_rd()
528 nseg = coap_split_path(loc, loc_size, b, &buflen); in hnd_post_rd()