C语言程序题!高分求答案!

来源:百度知道 编辑:UC知道 时间:2024/05/03 10:05:09
不用系统函数strcpy()实现将字符串a复制到字符串b的功能!
以上是题目~~~~谢谢~~~
找到答案了...用不着那么麻烦吧...谢谢了~~~

/***
*strcat.c - contains strcat() and strcpy()
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Strcpy() copies one string onto another.
*
* Strcat() concatenates (appends) a copy of the source string to the
* end of the destination string, returning the destination string.
*
*******************************************************************************/

/***
*char *strcpy(dst, src) - copy one string over another
*
*Purpose:
* Copies the string src into the spot specified by
* dest; assumes enough room.
*
*Entry:
* char * dst - string over which "src" is to be copied
* const char * src - string to be copied over "dst"
*
*Exit:
* The address of "dst"
*
*Exceptions:
**********************************************************************