Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/imem.h @ 1329:ae229b7acb4c HEAD
Mailbox names are now sent through imap-quoter instead of just escaping it.
This means that mailbox names that would require escapes are instead sent
as literals now.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 02 Apr 2003 05:05:38 +0300 |
parents | 4d6b69558add |
children | 0e72d6ab85ad |
line wrap: on
line source
#ifndef __IMEM_H #define __IMEM_H extern pool_t default_pool; /* For easy allocation of memory from default memory pool. */ #define i_new(type, count) \ ((type *) i_malloc(sizeof(type) * (count))) void *i_malloc(size_t size); void i_free(void *mem); void *i_realloc(void *mem, size_t old_size, size_t new_size); /* string functions */ char *i_strdup(const char *str); char *i_strdup_empty(const char *str); /* like i_strdup(), but if str == "", return NULL */ char *i_strdup_until(const void *str, const void *end); /* *end isn't included */ char *i_strndup(const void *str, size_t max_chars); char *i_strdup_printf(const char *format, ...) __attr_format__(1, 2); char *i_strdup_vprintf(const char *format, va_list args); char *i_strconcat(const char *str1, ...); /* NULL terminated */ void imem_init(void); void imem_deinit(void); #endif