Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 180 Bytes

coding tips.md

File metadata and controls

10 lines (9 loc) · 180 Bytes

coding tips using C language

string copy from one to another

char s1[100];
char s2[100];
memcopy(s1,s2,sizeof(lenS2));
printf("%s",s1);

memcopy自动在后面加'\0'