basic c question

yup,
you have to use strcmp correctly

http://www.cplusplus.com/reference/cstring/strcmp/

this site is the place to be where you have to code C.