Just a head's up as well, if you get in to comparing strings and case sensitivity, avoid the use of strcasecmp() for those using VC++, as it's also Non-Standard C , use the toupper or tolower functions. You'll run into the same issue as using itoa() as well as a few other functions.