I'm really confused about what is wrong with my code as load works for certain files but not others and the reading of the file isn't something that is altered in any of the functions we're tasked with.
I've included check50 results and code here: http://pastebin.com/v3eU24Zt
My load function reads in character by character, with GDB I watch it read in HTML, ico, js etc. fine but it doesn't read in anything for a jpg.
I also don't understand why it can't handle, HtMl for example as I use strncasecmp in lookup so case shouldn't matter right?