I'm attempting to write a multi language program that loads the language configuration from a file and then loads the language info from a resource file. I'm very unsure of whether or not what I'm doing is the best way of doing this. I've searchd the almighty Google for best practices but the articles I've found haven't completely answered my question. The best answer that I got was to write a simple parser for the config file and to store the settings in an object, which sounds pretty good in theory. I've also decided to read the resource file line by line and store the messages in strings that are declared in an object, but I'm wondering if that's not following the kiss and dry principles as closely as I'd like it to. I'd just like some constructive criticism. What do you think so far?
Why do you end ever string literal that you pass to strcmp() with \0? The following is true:
strcmp("foo\0", "foo") == 0
Because
"foo\0" -> {'f', 'o', 'o', 0, 0}
"foo" -> {'f', 'o', 'o', 0}