📄 sstrcpy.c
字号:
/*** strcpy() and strcat() work-alikes which allow overlapping buffers.*/#include <string.h>#include "snip_str.h"#if defined(__cplusplus) && __cplusplus extern "C" {#endifchar *sstrcpy(char *to, char *from){ memmove(to, from, 1+strlen(from)); return to;}char *sstrcat(char *to, char *from){ sstrcpy(to + strlen(to), from); return to;}#if defined(__cplusplus) && __cplusplus }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -