New answers tagged

0

In your unload function, you check if the cursor is zero. Instead you should check if the cursor is NULL. So the condition for the while loop should be cursor != NULL. The valgrind error states line 77 in dictionary.c, which is node *n = malloc(sizeof(node)). To fix this problem, declare n outside the while loop as node *n = NULL. Then inside the loop, do n =...


Top 50 recent answers are included