Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/hex-binary.h @ 100:867ec80dbf42 HEAD
Custom flags are now shown in FLAGS and PERMANENTFLAGS lists after SELECT.
It also warns if there's for some reason a duplicate index number in custom
flags file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 29 Aug 2002 22:21: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