Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/str-sanitize.h @ 3749:194295062e5e HEAD
Added kqueue support. Patch by Vaclav Haisman.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Dec 2005 20:51:52 +0200 |
parents | 631611c2d6e6 |
children | e4eb71ae8e96 |
line wrap: on
line source
#ifndef __STR_SANITIZE_H #define __STR_SANITIZE_H /* All control characters in src will be appended as '?'. If src is longer than max_len, it's truncated with "..." appended to the end. */ void str_sanitize_append(string_t *dest, const char *src, size_t max_len); const char *str_sanitize(const char *src, size_t max_len); #endif