回答編集履歴
1
特に意味はなし
test
CHANGED
@@ -48,11 +48,11 @@
|
|
48
48
|
|
49
49
|
if((fp=fopen(fname,"r"))==NULL)
|
50
50
|
|
51
|
-
e
|
51
|
+
return NULL;
|
52
52
|
|
53
53
|
if((h=(int**)calloc(sizeof(int*),h_size))==NULL)
|
54
54
|
|
55
|
-
e
|
55
|
+
return NULL;
|
56
56
|
|
57
57
|
y=0;
|
58
58
|
|
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
if((h=realloc(h,sizeof(int*)*h_size*2))==NULL)
|
102
102
|
|
103
|
-
|
103
|
+
return NULL;
|
104
104
|
|
105
105
|
else
|
106
106
|
|
@@ -113,6 +113,8 @@
|
|
113
113
|
}
|
114
114
|
|
115
115
|
}
|
116
|
+
|
117
|
+
fclose(fp);
|
116
118
|
|
117
119
|
return h;
|
118
120
|
|