GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
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_forget
void Rowio_forget(ROWIO *R, int row)
Release row from memory.
Definition:
forget.c:22
rowio.h
ROWIO::ROWIO_RCB::row
int row
Definition:
rowio.h:17
ROWIO
Definition:
rowio.h:4
ROWIO::rcb
struct ROWIO::ROWIO_RCB * rcb
ROWIO::nrows
int nrows
Definition:
rowio.h:6
lib
rowio
forget.c
Generated on Thu Nov 21 2024 07:03:26 for GRASS GIS 8 Programmer's Manual by
1.9.1