Here's the problem, ...
/*===================*/
Struct identifier
{
char* name;
int value;
}
struct identifier id[100];
/*===================*/
So, basically I have an array of structures.....
Lets say I have....
/*====================*/
char **tokenbuffer;
id[0].name = tokenbuffer[0];
id[1].name = tokenbuffer[1];
etc....
Then,... I eventually NULL out all the cells of tokenbuffer in a for loop.
The problem is that once I do this, I wipe out the id[].name
values in my struct as well. I suppose this is because I'm really
storing a pointer in id[].name because it is of type char*. How
can I resolve this problem, i.e. keep the struct from changing
when I alter tokenbuffer ?
-jay