strcmp() won't work for you because it expects an exact match.
you can call strstr() to see if the line contains "-hello". If it does, then check for anything following to see if something other than spaces. You may need to do additional checks if there is a chance that the line will contains other stuff, for example "-HelloWorld" because strstr() will return valid pointer for that also.
char* ptr = strstr(line, "-hello");
if( ptr != NULL)
{
// now check remainder of string to see if
// there is anything but spaces following the
// text -Hello.
}
Ancient Dragon
Achieved Level 70
32,144 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,577
Skill Endorsements: 69