GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
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 */
22void 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}
void Rowio_forget(ROWIO *R, int row)
Release row from memory.
Definition forget.c:22