Hi.
This is my boggle: I have a structure defined and typedef'd to "node".
I want to pass a pointer to the node to a function called highNode.
At the start of the program I have the definition:
void highNode(node *n);
then in the program itself I do:
int *node_ptr;
node_ptr = &node;
highNode(node_ptr);
Then at the end of the program I write the function with:
void highNode(node *n){ ##
//operations on n.
}
But the error I'm getting is at line ## saying:
"highNode:local function definitions are illegal"
Any ideas??
Thanks
D
This is my boggle: I have a structure defined and typedef'd to "node".
I want to pass a pointer to the node to a function called highNode.
At the start of the program I have the definition:
void highNode(node *n);
then in the program itself I do:
int *node_ptr;
node_ptr = &node;
highNode(node_ptr);
Then at the end of the program I write the function with:
void highNode(node *n){ ##
//operations on n.
}
But the error I'm getting is at line ## saying:
"highNode:local function definitions are illegal"
Any ideas??
Thanks
D