C?????蟹????????????????????????
?????turkeyzhou ???????[ 2016/12/13 11:33:59 ] ????????C???? ????? ????
??????????????
????1????????????????????????????
????2?????????????????????????
????3????????????????????????????
????4????????????
????******************???????csdn******************************
???????????????????效?????尾?????????????效???
??????梅??????妫�???????效
????char *fun()
????{
????char* s = (char*)calloc(100?? sizeof(char*) );
????if (s)
????strcpy ( s ?? "abc " );
????return s;
????}
??????????????????????????y??????????free??
?????????????未???
????char* fun(char*s)
????{
????if (s)
????strcpy(s?? "abc ");
????return s;
????}
????????????????????s??????小??????
??????????????
????char* fun(char*s?? int len)
????{
????if (s)
????{
????strncpy(s?? "abc "?? len-1);
????s[len-1] = 0;
????}
????return s;
????}
?????????t?????????
????char* fun()
????{
????static char s[100];
????strcpy(s?? "abc ");
????return s;
????}
???????????????????????????????????????????????????????????????????????????????????
????const char* fun()
????{
????static char s[100];
????strcpy(s?? "abc ");
????return s;
????}
??????????????????????
????char g_s[100];
????char* fun()
????{
????strcpy(g_s?? "abc ");
????return s;
????}
????????????????????????娲�?????
??????
???路???
??????????????????
2023/3/23 14:23:39???写?貌??????????
2023/3/22 16:17:39????????????????????些??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???路???????路
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11