| 167 | } |
| 168 | |
| 169 | void strbuf_hex(strbuf *buf, void *tohex, int len) |
| 170 | { |
| 171 | int strsz = (2 * len); |
| 172 | char *hexst = malloc(strsz + 1); |
| 173 | char *output = util_tohex(hexst, tohex, len); |
| 174 | strbuf_appendf(buf, output, strsz); |
| 175 | free(hexst); |
| 176 | } |
no test coverage detected