My understanding of c memory usage is not the best at the moment. So how should i go about fixing the memory leak. I need to section off memory in both getLevel and main to set the variable type...
Type: Posts; User: bar338
My understanding of c memory usage is not the best at the moment. So how should i go about fixing the memory leak. I need to section off memory in both getLevel and main to set the variable type...
I've looked through my code alot and can not seem to find the error, i really appreciate your help. The problem is that when i call cord[] (part of node) in the main file it is not returning an int....
it is just sample data. I will be creating text files later with more useful information. What do you mean by increment cord? I thought i was incrementing it.
tmp->cord[0] = cord[0];
tmp->cord[1] = cord[1];
tmp->cord[2] = cord[2];
tmp->cord[3] = cord[3];
tmp->cord[4] = cord[4];
tmp->cord[5] = cord[5];
tmp->cord[6] = cord[6];
...
ahhhh i've been staring at that forever. Thanks. One last question. What is wrong with setting cord like this in make_node() in list.c
tmp->cord = cord;
I'm attempting to pass an array to a linked list i've created and am having some difficulties. I've bolded the problematic lines.
I am receiving these error messages:
I'm sure it has...