implementation of strcpy in c