Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/hex-binary.h @ 903:fd8888f6f037 HEAD
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Jan 2003 15:09:51 +0200 |
parents | 553f050c8313 |
children | 05b8b6963b02 |
line wrap: on
line source
#ifndef __HEX_BINARY_H #define __HEX_BINARY_H /* Convert binary to lowercased hex digits allocating return value from data stack */ const char *binary_to_hex(const unsigned char *data, size_t size); /* Convert hex to binary. data and dest may point to same value. Returns TRUE if successful. Returns 1 if all ok, 0 if dest buffer got full or -1 if data is invalid. */ int hex_to_binary(const char *data, buffer_t *dest); #endif