1 /* $NetBSD: mymalloc.h,v 1.4 2022/10/08 16:12:50 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 void *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 /* Wietse Venema 37 /* Google, Inc. 38 /* 111 8th Avenue 39 /* New York, NY 10011, USA 40 /*--*/ 41 42 #endif 43