I just spent hours trying to figure out why a program wasn't working, looking up and down the code to try and figure it out. Turns out the problem was that in one of the data files it was "en_uk" instead of "en_UK" and I didn't pick it up until I used a text diff to figure out what the fuck was going on.
Program works perfectly fine now, it wasn't my shit c code.