I am trying to create a program that runs certain commands ( Pali() is the command ) for example, when the user types in Pali(bob) the program checks if the word inside the () is a palindrome. Also, the command Pali() must be exactly typed out like that or an error message will come up.
I plan on using strtok to parse the string but not quite sure how I can do that to check just the characters "Palin()" and ignore the content inside the parentheses. Also how would I be able to pull the content out of the parentheses so I can test if its a palindrome?