Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / mvect.h
blobcea0e386e2ce4fd215f85fb9811916f90851a81f
1 /* $NetBSD$ */
3 #ifndef _MVECT_H_INCLUDED_
4 #define _MVECT_H_INCLUDED_
6 /*++
7 /* NAME
8 /* mvect 3h
9 /* SUMMARY
10 /* memory vector management
11 /* SYNOPSIS
12 /* #include <mvect.h>
13 /* DESCRIPTION
14 /* .nf
17 * Generic memory vector interface.
19 typedef void (*MVECT_FN) (char *, int);
21 typedef struct {
22 char *ptr;
23 int elsize;
24 int nelm;
25 MVECT_FN init_fn;
26 MVECT_FN wipe_fn;
27 } MVECT;
29 extern char *mvect_alloc(MVECT *, int, int, MVECT_FN, MVECT_FN);
30 extern char *mvect_realloc(MVECT *, int);
31 extern char *mvect_free(MVECT *);
33 /* LICENSE
34 /* .ad
35 /* .fi
36 /* The Secure Mailer license must be distributed with this software.
37 /* AUTHOR(S)
38 /* Wietse Venema
39 /* IBM T.J. Watson Research
40 /* P.O. Box 704
41 /* Yorktown Heights, NY 10598, USA
42 /*--*/
44 #endif