xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/mymalloc.h (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /*	$NetBSD: mymalloc.h,v 1.2 2017/02/14 01:16:49 christos Exp $	*/
2 
3 #ifndef _MALLOC_H_INCLUDED_
4 #define _MALLOC_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	mymalloc 3h
9 /* SUMMARY
10 /*	memory management wrappers
11 /* SYNOPSIS
12 /*	#include "mymalloc.h"
13  DESCRIPTION
14  .nf
15 
16  /*
17   * External interface.
18   */
19 extern void *mymalloc(ssize_t);
20 extern void *myrealloc(void *, ssize_t);
21 extern void myfree(void *);
22 extern char *mystrdup(const char *);
23 extern char *mystrndup(const char *, ssize_t);
24 extern char *mymemdup(const void *, ssize_t);
25 
26 /* LICENSE
27 /* .ad
28 /* .fi
29 /*	The Secure Mailer license must be distributed with this software.
30 /* AUTHOR(S)
31 /*	Wietse Venema
32 /*	IBM T.J. Watson Research
33 /*	P.O. Box 704
34 /*	Yorktown Heights, NY 10598, USA
35 /*--*/
36 
37 #endif
38