| 521 | return memcmp(a->iov[1].iov_base, b, len); |
| 522 | } |
| 523 | static 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 | |
| 531 | static inline str *bencode_get_str(bencode_item_t *in, str *out) { |
| 532 | if (!in || in->type != BENCODE_STRING) |
no test coverage detected