Homework/HW09/Utilities.cpp
void testAllocation(void *p)
{
    if (!p)
    {
        cout << "Dynamic allocation failed. Program being terminated.\n";
        exit(1);
    }
}
/****************************** testAllocation *****************************************************
Action:         Dr. Knight's and Dr. Vrajitoru's testAllocation function.  Tests a pointer of any
                type and displays an error message then exits the program if the pointer is null.

Parameters:
IN:             void *p, holds a raw pointer to somewhere in memory.
OUT:            None

Returns:        Nothing

Precondition:   None
***************************************************************************************************/
testAllocation
Action:         Dr. Knight's and Dr. Vrajitoru's testAllocation function.  Tests a pointer of any
type and displays an error message then exits the program if the pointer is null.

void *p, holds a raw pointer to somewhere in memory.
OUT:            None

Nothing

None
testAllocation Action : Dr . Knight ' s and Dr . Vrajitoru ' s testAllocation function . Tests a pointer of any type and displays an error message then exits the program if the pointer is null . void * p holds a raw pointer to somewhere in memory . OUT : None Nothing None
void testAllocation(void *p)
{
    if (!p)
    {
        cout << "Dynamic allocation failed. Program being terminated.\n";
        exit(1);
    }
}
void testAllocation ( void * p ) { if ( ! p ) { cout << " \n " ; exit ( 1 ) ; } }
testAllocation
Action:         Dr. Knight's and Dr. Vrajitoru's testAllocation function.
testAllocation Action : Dr . Knight ' s and Dr . Vrajitoru ' s testAllocation function .