GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
rowio/release.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <
grass/rowio.h
>
4
5
void
Rowio_release
(
ROWIO
* R)
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
}
ROWIO::ROWIO_RCB::buf
void * buf
Definition:
rowio.h:16
free
void free(void *)
NULL
#define NULL
Definition:
ccmath.h:32
ROWIO::rcb
struct ROWIO::ROWIO_RCB * rcb
ROWIO
Definition:
rowio.h:4
Rowio_release
void Rowio_release(ROWIO *R)
Definition:
rowio/release.c:5
ROWIO::nrows
int nrows
Definition:
rowio.h:7
rowio.h
lib
rowio
release.c
Generated on Tue Feb 14 2023 05:56:01 for GRASS GIS 8 Programmer's Manual by
1.8.13