string comparison

for what reasons strcpy is used in some cases where strings are to be compared...we can use strcmp for string comparison but why strcpy????
strcpy is for copying c strings. It has nothing to do with comparison.
Topic archived. No new replies allowed.