📄 strcpy.c
字号:
/*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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -