view debug.c @ 145:357f4ce3ca6d

Add incredibly ugly implementation of Read Delim to TCP Connection
author Mike Pavone <pavone@retrodev.com>
date Sun, 21 Nov 2010 22:08:17 -0500
parents 76568becd6d6
children
line wrap: on
line source

#include <stdlib.h>
#include "debugmacros.h"

void * debug_malloc(size_t size, char * msg)
{
	void * ptr = malloc(size);
	DEBUGPRINTF("malloc: %X (%X bytes), %s\n", ptr, size, msg);
	return ptr;
}