BUFFALLOC - routines to ALLOCate/initialize and free BUFFers buffAlloc1 allocate a 1D buffer buffRealloc1 reallocate a 1D buffer buffFree1 free a 1D buffer buffAlloc2 allocate a 2D buffer buffFree2 free a 2D buffer Function Prototypes: memBUFF *buffAlloc1(int n); void buffRealloc1(memBUFF *buff, int n); void buffFree1(memBUFF *buff); memBUFF **buffAlloc2(int n1, int n2); void buffFree2(memBUFF **buff, int n1); buffAlloc1: Input: n size of buffer Returns: pointer to type memBUFF buffRealloc1: Input: buff pointer to buffer n new size of buffer buffFree1: Input: buff pointer to buffer buffAlloc2: Input: n1 size of buffer in fast dimension n2 size of buffer in slow dimension Returns: pointer to type memBUFF Author: Tong Chen