Mercurial > dovecot > core-2.2
view src/lib-mail/message-header-encode.h @ 14682:d0d7b810646b
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jun 2012 01:14:03 +0300 |
parents | 104edcb89a70 |
children | cc622a9a2f3c |
line wrap: on
line source
#ifndef MESSAGE_HEADER_ENCODE_H #define MESSAGE_HEADER_ENCODE_H /* Encode UTF-8 input into output wherever necessary. */ void message_header_encode(const char *input, string_t *output); /* Encode the whole UTF-8 input using "Q" or "B" encoding into output. The output is split into multiple lines if necessary. The first line length is looked up from the output string. */ void message_header_encode_q(const unsigned char *input, unsigned int len, string_t *output); void message_header_encode_b(const unsigned char *input, unsigned int len, string_t *output); #endif