Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/hex-binary.h @ 58:8aaa39e7aec8 HEAD
sendfile() works now properly with 64bit off_t
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Aug 2002 03:11:51 +0300 |
parents | a766fb2132de |
children | 4a7ab9e94f25 |
line wrap: on
line source
#ifndef __HEX_BINARY_H #define __HEX_BINARY_H /* Convert binary to lowercased hex digits allocating return value from temporary memory pool */ const char *binary_to_hex(const unsigned char *data, unsigned int size); /* Convert hex to binary. data and dest may point to same value. Returns TRUE if successful. Returns number of bytes written to dest, or -1 if error occured. Make sure dest is at least half the size of strlen(data). */ int hex_to_binary(const char *data, unsigned char *dest); #endif