diff options
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -675,6 +675,14 @@ void printhex(const char * label, const unsigned char * buf, int len) { } fprintf(stderr, "\n"); } + +void printmpint(const char *label, mp_int *mp) { + buffer *buf = buf_new(1000); + buf_putmpint(buf, mp); + printhex(label, buf->data, buf->len); + buf_free(buf); + +} #endif /* Strip all control characters from text (a null-terminated string), except |