s_gets(temp,SLEN); // allocate memory to hold name pst->fname =(char *) malloc(strlen(temp)+ 1); // copy name to allocated memory strcpy(pst->fname,temp); ...
確定! 回上一頁