GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
forget.c
Go to the documentation of this file.
1
/*!
2
\file rowio/forget.c
3
4
\brief RowIO library - Release a row
5
6
(C) 2001-2009 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Original author CERL
12
*/
13
14
#include <
grass/rowio.h
>
15
16
/*!
17
\brief Release row from memory
18
19
\param R pointer to ROWIO structure
20
\param row row number
21
*/
22
void
Rowio_forget
(
ROWIO
* R,
int
row)
23
{
24
int
i;
25
26
if
(row < 0)
27
return
;
28
29
for
(i = 0; i < R->
nrows
; i++)
30
if
(row == R->
rcb
[i].
row
) {
31
R->
rcb
[i].
row
= -1;
/* no longer in memory */
32
break
;
33
}
34
}
ROWIO::ROWIO_RCB::row
int row
Definition:
rowio.h:18
ROWIO::rcb
struct ROWIO::ROWIO_RCB * rcb
ROWIO
Definition:
rowio.h:4
ROWIO::nrows
int nrows
Definition:
rowio.h:7
rowio.h
Rowio_forget
void Rowio_forget(ROWIO *R, int row)
Release row from memory.
Definition:
forget.c:22
lib
rowio
forget.c
Generated on Tue Feb 14 2023 05:55:59 for GRASS GIS 8 Programmer's Manual by
1.8.13