strcpy function

来源:互联网 发布:服装企业数据分析 编辑:程序博客网 时间:2024/06/06 02:03

char * strcpy( char *strDest, const char *strSrc )

{

 assert((strDest != NULL) && (strSrc != NULL) ); // judge if the two arrays empty

 char*address = strDest;                                    // record the address

 while((*strDest++ = * strSrc++) != /0 );// key code

  returnaddress;                                          // return the target array head address

}

 

原创粉丝点击