cctools
xxmalloc.h
Go to the documentation of this file.
1/*
2Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3Copyright (C) 2022 The University of Notre Dame
4This software is distributed under the GNU General Public License.
5See the file COPYING for details.
6*/
7
8#include <sys/types.h>
9
10#ifndef XXMALLOC_H
11#define XXMALLOC_H
12
25void *xxmalloc(size_t nbytes);
26void *xxcalloc(size_t nmemb, size_t size);
27void *xxrealloc(void *ptr, size_t nbytes);
28
34char *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.