cctools
xmalloc.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #include <sys/types.h>
9 
10 #ifndef XMALLOC_H
11 #define XMALLOC_H
12 
25 void *xxmalloc(size_t nbytes);
26 
27 void *xxrealloc(void *ptr, size_t nbytes);
28 
34 char *xstrdup(const char *str);
35 
36 #endif
char * xstrdup(const char *str)
Duplicate string, or abort on failure.
void * xxmalloc(size_t nbytes)
Allocate memory, or abort on failure.