xalloc.h - enscript - GNU Enscript
 (HTM) git clone git://thinkerwim.org/enscript.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       xalloc.h (1298B)
       ---
            1 /* 
            2  * Non-failing memory allocation routines.
            3  * Copyright (c) 1996 Markku Rossi.
            4  *
            5  * Author: Markku Rossi <mtr@iki.fi>
            6  */
            7 
            8 /*
            9  * This file is part of GNU enscript.
           10  * 
           11  * This program is free software; you can redistribute it and/or modify
           12  * it under the terms of the GNU General Public License as published by
           13  * the Free Software Foundation; either version 2, or (at your option)
           14  * any later version.
           15  *
           16  * This program is distributed in the hope that it will be useful,
           17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
           18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
           19  * GNU General Public License for more details.
           20  *
           21  * You should have received a copy of the GNU General Public License
           22  * along with this program; see the file COPYING.  If not, write to
           23  * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
           24  * Boston, MA 02110-1301, USA.
           25  */
           26 
           27 #ifndef XALLOC_H
           28 #define XALLOC_H
           29 
           30 #ifndef ___P
           31 #if PROTOTYPES
           32 #define ___P(protos) protos
           33 #else /* no PROTOTYPES */
           34 #define ___P(protos) ()
           35 #endif /* no PROTOTYPES */
           36 #endif
           37 
           38 void *xmalloc ___P ((size_t size));
           39 
           40 void *xcalloc ___P ((size_t num, size_t size));
           41 
           42 void *xrealloc ___P ((void *ptr, size_t size));
           43 
           44 void xfree ___P ((void *ptr));
           45 
           46 char *xstrdup ___P ((char *));
           47 
           48 #endif /* XALLOC_H */