I have no idea what "BackAnim" is supposed to do. Clearly you have copied this from somewhere because you don't know what it's supposed to do either. So: find the source.
Also, instead of relying on strcmp, convert the value to an integer so you can use it in a switch. Faster, easier and more compact.