Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-imap/imap-quote.h @ 898:0d5be52d7131 HEAD
Use unsigned char* when accessing non-NUL terminating strings. Compiler
warnings would then notify about accidentally passing them to functions which
require them NUL-terminated. Changed a few functions to use void* to avoid
unneeded casting.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 04 Jan 2003 19:26:29 +0200 |
parents | 6f4eeb6a0a0d |
children | fd8888f6f037 |
line wrap: on
line source
#ifndef __IMAP_QUOTE_H #define __IMAP_QUOTE_H /* If value is non-NULL, return it "quoted", otherwise return NIL unquoted. */ const char *imap_quote_str_nil(const char *value); /* Return value quoted and allocated from specified pool. */ char *imap_quote_value(Pool pool, const unsigned char *value, size_t value_len); #endif