All Questions
6 questions
1
vote
1
answer
25
views
PSET 5 Speller fails memory check
This is the full code:
#include <ctype.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h&...
1
vote
2
answers
32
views
PSET 5 speller fails when solving a memory issue
Ok so when I compile the commented out part, check50 fails most of my criteria! But if I remove it, the program works but Valgrind has a frown. But when i run valgrind without the commented code, it ...
1
vote
2
answers
38
views
My load function is licking memory
the program complies properly but when i use valgrind shows am leaking memory when I open the file in the FILE *file = fopen(dictionary, "r");
bool load(const char *dictionary)
{
// TODO
...
0
votes
1
answer
56
views
Help with unloading my dic
I have been trying speller for far too long now and need help with unloading the dictionary.
This is the code I have now
// Unloads dictionary from memory, returning true if successful else false
bool ...
0
votes
1
answer
187
views
Speller hash table - unload memory not working
Good afternoon
Hitting the last hurdle with unloading memory, can't figure where I'm going wrong
Code to load the hash table:
// Loads dictionary into memory, returning true if successful else false
...
0
votes
1
answer
85
views
Speller - Memory allocation
I'm finishing up speller with a hashtable, but Valgrind is giving me two different headaches.
One of them has to do with this famous 32 bytes, which apparently is some kind of clang bug so I'll ignore ...