| 409 | } |
| 410 | |
| 411 | static inline bencode_item_t *bencode_dictionary_add_str_dup(bencode_item_t *dict, const char *key, const str *val) { |
| 412 | if (!val) |
| 413 | return NULL; |
| 414 | return bencode_dictionary_add(dict, key, bencode_str_dup(bencode_item_buffer(dict), val)); |
| 415 | } |
| 416 | |
| 417 | static inline bencode_item_t *bencode_dictionary_add_integer(bencode_item_t *dict, const char *key, long long int val) { |
| 418 | return bencode_dictionary_add(dict, key, bencode_integer(bencode_item_buffer(dict), val)); |
nothing calls this directly
no test coverage detected