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

Function bencode_dictionary_get_strcmp

modules/rtpengine/bencode.h:523–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 return memcmp(a->iov[1].iov_base, b, len);
522}
523static inline int bencode_dictionary_get_strcmp(bencode_item_t *dict, const char *key, const char *str) {
524 bencode_item_t *i;
525 i = bencode_dictionary_get(dict, key);
526 if (!i)
527 return 2;
528 return bencode_strcmp(i, str);
529}
530
531static inline str *bencode_get_str(bencode_item_t *in, str *out) {
532 if (!in || in->type != BENCODE_STRING)

Callers 4

rtpe_function_callFunction · 0.85
rtpe_function_call_okFunction · 0.85
rtpe_testFunction · 0.85

Calls 2

bencode_dictionary_getFunction · 0.85
bencode_strcmpFunction · 0.85

Tested by

no test coverage detected