Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Histogram
diff FloatHist.c @ 15:32489b8b763c
added MC_shared brch
| author | Me@portablequad |
|---|---|
| date | Sat, 11 Feb 2012 19:20:37 -0800 |
| parents | 1fbaedaac2c7 |
| children | f4d96eaf374a |
line diff
1.1 --- a/FloatHist.c Sat Feb 11 19:19:06 2012 -0800 1.2 +++ b/FloatHist.c Sat Feb 11 19:20:37 2012 -0800 1.3 @@ -26,8 +26,8 @@ 1.4 FloatHist *hist; 1.5 int i; 1.6 1.7 - hist = malloc( sizeof(FloatHist) ); 1.8 - hist->bins = malloc( numBins * sizeof(int) ); 1.9 + hist = VMS__malloc( sizeof(FloatHist) ); 1.10 + hist->bins = VMS__malloc( numBins * sizeof(int) ); 1.11 1.12 hist->numBins = numBins; 1.13 hist->binWidth = binWidth; 1.14 @@ -100,6 +100,6 @@ 1.15 void 1.16 freeFloatHist( FloatHist *hist ) 1.17 { 1.18 - free( hist->bins ); 1.19 - free( hist ); 1.20 + VMS__free( hist->bins ); 1.21 + VMS__free( hist ); 1.22 }
