xxmalloc.h
Go to the documentation of this file.
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#include <sys/types.h>
#ifndef XXMALLOC_H
#define XXMALLOC_H
void *xxmalloc(size_t nbytes);
void *xxcalloc(size_t nmemb, size_t size);
void *xxrealloc(void *ptr, size_t nbytes);
char *xxstrdup(const char *str);
#endif
xxstrdup
char * xxstrdup(const char *str)
Duplicate string, or abort on failure.
xxmalloc
void * xxmalloc(size_t nbytes)
Allocate memory, or abort on failure.