Searched refs:null_terminated_string (Results 1 – 1 of 1) sorted by relevance
32 char* null_terminated_string = malloc(cbor_string_length(item) + 1); in cbor_to_cjson() local33 memcpy(null_terminated_string, cbor_string_handle(item), in cbor_to_cjson()35 null_terminated_string[cbor_string_length(item)] = 0; in cbor_to_cjson()36 cJSON* result = cJSON_CreateString(null_terminated_string); in cbor_to_cjson()37 free(null_terminated_string); in cbor_to_cjson()