现在的位置: 首页 > 综合 > 正文

strcpy的实现

2013年12月11日 ⁄ 综合 ⁄ 共 193字 ⁄ 字号 评论关闭

char *strcpy(char *strDestination, const char *strSource)

  {

  assert(strDestination!=NULL && strSource!=NULL);

  char *strD=strDestination;

  while ((*strDestination++=*strSource++)!='\0')

  return strD;

  }

抱歉!评论已关闭.