Is there a reason why you did not use STRCMP and STRLEN macros?