strcpy.c

来自「与C语言四书五经之《C和指针》的配套的书上源代码。」· C语言 代码 · 共 14 行

C
14
字号
/*
**  Copy the string contained in the second argument to the
** buffer specified by the first argument.
*/
void
strcpy( char *buffer, char const *string )
{
	/*
	** Copy characters until a NUL byte is copied.
	*/
	while( (*buffer++ = *string++) != '\0' )
		;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?