Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 7539
2 votes
Accepted

14 allocs ,13 frees in unload()

Let's say root points at 0x5202040 (in my PC it really does) In unload() you make a pointer temp that points at 0x5202040 too. … So after all, your unload() works great, if you change the following: Remove the node* temp = root; from your unload() Call free_memory() by free_memory(root). …
ChrisG's user avatar
  • 7,396
1 vote
Accepted

Pset5 Problem with Valgrind

Your problem arises when you read an apostrophe in load(). You have: c = fgetc(dict); if(isalpha(c) || c == '\'') { // Checks if the node already exists or not if(trav->children[c-96] == NULL …
ChrisG's user avatar
  • 7,396
0 votes
Accepted

My unload only gets one free

First of all the ifs with the empty body are really inelegant, and no serious programmer does this. If you want to code something in the else case, then change the condition to it's opposite. So this …
ChrisG's user avatar
  • 7,396