- 338 名前:デフォルトの名無しさん (ワッチョイ d7b3-rZTD) mailto:sage [[ここ壊れてます] .net]
- #include <stdio.h>
#include <string.h> #include <stdlib.h> #include <memory.h> typedef struct { int year; int mon; int mday; int hour; int min; double high; double open; double close; double low; } CSV_T; void f(CSV_T *csv){ CSV_T *work; for(int i=1; i<1001; i++){ //★ work = realloc(csv, sizeof(CSV_T)*i); if(work == NULL){ puts("error"); exit(0); } if(work != csv) { puts("ココ通過でアウト"); //▲ csv = work; } }
|

|