struct BSTree* newBSTree(){ struct BSTree *tree = (struct BSTree *)malloc(sizeof(struct BSTree)); assert(tree != 0); initBSTree(tree); return tree; }
struct BSTree* newBSTree() { printf("In newBSTree\n"); struct BSTree *tree = (struct BSTree *)malloc(sizeof(struct BSTree)); assert(tree != 0); initBSTree(tree); return tree; }
struct BSTree* newBSTree() { struct BSTree *tree = (struct BSTree *)malloc(sizeof(struct BSTree)); if (tree != NULL) { initBSTree(tree); return tree; } else errorEndProg(); }
struct BSTree* newBSTree() { // Remove this print statement printf("%s\n", "allocating memory (newBSTree)"); struct BSTree *tree = (struct BSTree *)malloc(sizeof(struct BSTree)); printf("%s%d\n", "ADDRESS OF TREE: ", tree); assert(tree != 0); initBSTree(tree); printf("%s\n", "returning new tree"); return tree; }
struct BSTree* newBSTree() { struct BSTree *temp = malloc(sizeof(struct BSTree)); initBSTree(temp); return temp; }