åçãããã¨ããããã¾ãã 質åããã®ã«æ大æåå¶éããã£ã¦æ¸ãããã¦ã¾ããã§ããã å確ä¿ããã¢ãã¬ã¹ã使ç¨ãã¦ããã®ãã¨ã®å¦çã¯è¡ã£ã¦ã¾ãã éä¸çç¥ãã¦ã¾ããããããªæãã§ãã --------------------------- for( i = 0 ; ; i++) { *pt2 = realloc( *pt2 ,sizeof(æ§é ä½) * (i+1) ); } ããã§ããããã°ãã°ãåºåããã¨ããã --------------------------- ããããã°æ å ±ã pt1:å¤æ´ããããã¤ã³ã¿å¤æ° pt2:reallocã«ãã£ã¦å確ä¿æ使ç¨ãã¤ã³ã¿ï¼ããã«ãã¤ã³ã¿ï¼ pt1->item1 :pt1ã®æ ¼ç´å 容 pt1 <-å 容 :pt1ã®æ ¼ç´ãã¦ããã¢ãã¬ã¹å¤ã表示 pt2 <-ã¢ãã¬ã¹ :pt2èªèº«ã®ã¢ãã¬ã¹å¤ã表示 pt2 <-ã¢<-å 容 :pt2ã®æ ¼ç´ãã¦ããã¢ãã¬
{{#tags}}- {{label}}
{{/tags}}