/* This file contains functions that are used frequently */ #ifndef BASIC_SUPPORT_H #define BASIC_SUPPORT_H #include #include /* prints error message if memory could not be allocated */ void* safe_malloc(size_t size); /* prints error message if memory could not be allocated */ void* safe_realloc(void* ptr, size_t size); /* prints error message if file could not be opened correctly */ FILE* safe_fopen(const char *filename, const char *type); #endif