/*************** * utility.h * * Various general purpose definitions and methods that I like in my C code. * * $Id: utility.h 12567 2007-04-09 16:12:05Z mahoney $ ***************/ #ifndef __UTILITY__ #define __UTILITY__ 1 // Logical variables typedef int bool; #define TRUE 1 #define FALSE 0 // Same as malloc(); however, if the memory isn't available exit with an error. void* safe_malloc(int size); // convert an int into a string (char*) char* int2string(int i); #endif