summaryrefslogtreecommitdiff
path: root/memory.c
blob: 6f8253f48347452fd9f5695bce2db452337b22e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include "memory.h"


void* check_after_allocation(const char *funcname, void *ptr){
	if(ptr == NULL){
		perror(funcname);
		exit(1);
	}
	return ptr;
}