cctools
xxmalloc.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 XXMALLOC_H
11 #define XXMALLOC_H
12 
25 void *xxmalloc(size_t nbytes);
26 void *xxcalloc(size_t nmemb, size_t size);
27 void *xxrealloc(void *ptr, size_t nbytes);
28 
34 char *xxstrdup(const char *str);
35 
36 #endif
char * xxstrdup(const char *str)
Duplicate string, or abort on failure.
void * xxmalloc(size_t nbytes)
Allocate memory, or abort on failure.