MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / bencode_dictionary_add_string_dup

Function bencode_dictionary_add_string_dup

modules/rtpengine/bencode.h:399–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399static inline bencode_item_t *bencode_dictionary_add_string_dup(bencode_item_t *dict, const char *key, const char *val) {
400 if (!val)
401 return NULL;
402 return bencode_dictionary_add(dict, key, bencode_string_dup(bencode_item_buffer(dict), val));
403}
404
405static inline bencode_item_t *bencode_dictionary_add_str(bencode_item_t *dict, const char *key, const str *val) {
406 if (!val)

Callers

nothing calls this directly

Calls 3

bencode_dictionary_addFunction · 0.85
bencode_string_dupFunction · 0.85
bencode_item_bufferFunction · 0.85

Tested by

no test coverage detected