strcpy.c

来自「标准c库代码,可以应用于各个系统提供了大量的基本函数」· C语言 代码 · 共 52 行

C
52
字号
/*FUNCTION	<<strcpy>>---copy stringINDEX	strcpyANSI_SYNOPSIS	#include <string.h>	char *strcpy(char *<[dst]>, const char *<[src]>);TRAD_SYNOPSIS	#include <string.h>	char *strcpy(<[dst]>, <[src]>)	char *<[dst]>;	char *<[src]>;DESCRIPTION	<<strcpy>> copies the string pointed to by <[src]>	(including the terminating null character) to the array	pointed to by <[dst]>.RETURNS	This function returns the initial value of <[dst]>.PORTABILITY<<strcpy>> is ANSI C.<<strcpy>> requires no supporting OS subroutines.QUICKREF	strcpy ansi pure*/#include <string.h>/*SUPPRESS 560*//*SUPPRESS 530*/char *_DEFUN (strcpy, (s1, s2),	char *s1 _AND	_CONST char *s2){  char *s = s1;  while (*s1++ = *s2++)    ;  return s;}

⌨️ 快捷键说明

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