Here is the struct I am using for the nodes...
typedef struct
{
struct Node* next;
struct Node* previous;
void* data;
} Node;
and here is the function I am using to link them
void linkNodes(Node* first, Node* second)
{
if (first != NULL)
first->next = second;
if (second != NULL)
second->previous = first;
}
now visual studio is giving me the intellisense(less) error on those lines
IntelliSense: a value of type "Node *" cannot be assigned to an entity of type "Node *"
can anyone explain the proper way to do this? Visual studio will compile it and run it find and it also works on my mac but is crashing on my schools servers.
edit: i thought of using memcpy but that's pretty cheasy