How do I properly use the strcmp() function?
Carefully. First, note that it can return any integer, not just 1, 0, and -1. Many programmers find it counterintuitive that 0 corresponds to the strings being equal. Second, it is not guaranteed (or likely) to work if you pass it a NULL pointer. I get crazy results with the sqrt and other math functions. Be sure to #include