strcpy的实现

char *strcpy(char *strDestination, const char *strSource)
  {
  assert(strDestination!=NULL && strSource!=NULL);
  char *strD=strDestination;
  while ((*strDestination++=*strSource++)!='\0')
  return strD;
  }

你可能感兴趣的:(strcpy的实现)