view src/lib/str-sanitize.h @ 2689:631611c2d6e6 HEAD

Added string sanitization functions.
author Timo Sirainen <tss@iki.fi>
date Tue, 05 Oct 2004 18:29:38 +0300
parents
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