view src/lib-mail/rfc822-address.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 3b1985cbc908
children
line wrap: on
line source

#ifndef __RFC822_ADDRLIST_H
#define __RFC822_ADDRLIST_H

typedef struct _Rfc822Address Rfc822Address;

struct _Rfc822Address {
	Rfc822Address *next;

	char *name, *route, *mailbox, *domain;
};

Rfc822Address *rfc822_address_parse(Pool pool, const unsigned char *data,
				    size_t size);

#endif