I receive a segfault at this line of code
if (pathCheck -> children[charVal] == NULL) {
return false;
}
pseudocode buildup:
initialise pathCheck to NULL
while character is not \0
initialise character as character of input word
initialise value of character (c - 'a')
change to lower
then check if NULL (as above)
Any ideas?