// Simple C program to test make and .o files with #include "defs.h" //defines MAX #include #include int main( int argc, char* argv[] ) { int i = 0, j = 0, k = 0; node* node_ptr = 0; node* node_ptr2 = 0; node* tmp_node = 0; j = func1(MAX); i = j+2; k = func2(MAX); node_ptr = (node*) malloc(sizeof(node)); node_ptr->data = 10; strcpy(node_ptr->name, "AOC"); node_ptr->next = NULL; node_ptr->data++; //******************************************// node_ptr2 = (node*) malloc(sizeof(node)); node_ptr2->data = 2; strcpy(node_ptr->name, "TWO"); node_ptr2->next = NULL; node_ptr->next = node_ptr2; //********************************// for( i = 0; i < 1000000; i-- ) { k++; tmp_node = (node*) malloc(sizeof(node)); tmp_node->data = i; strcpy(tmp_node->name, "TMP"); tmp_node->next = NULL; node_ptr2->next = tmp_node; node_ptr2 = node_ptr2->next; } free(node_ptr); return(0); }