GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
rowio/release.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <grass/rowio.h>
4 
6 {
7  int i;
8 
9  if (R->rcb) {
10  for (i = 0; i < R->nrows && R->rcb[i].buf; i++)
11  free(R->rcb[i].buf);
12  free(R->rcb);
13  R->rcb = NULL;
14  }
15 }
void * buf
Definition: rowio.h:16
void free(void *)
#define NULL
Definition: ccmath.h:32
struct ROWIO::ROWIO_RCB * rcb
Definition: rowio.h:4
void Rowio_release(ROWIO *R)
Definition: rowio/release.c:5
int nrows
Definition: rowio.h:7