GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
rowio/put.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <string.h>
3
#include <grass/rowio.h>
4
5
27
int
rowio_put
(ROWIO * R,
const
void
*buf,
int
row)
28
{
29
int
i;
30
31
if
(row < 0)
32
return
0;
33
34
for
(i = 0; i < R->nrows; i++)
35
if
(row == R->rcb[i].row) {
36
memcpy(R->rcb[i].buf, buf, R->len);
37
R->rcb[i].dirty = 1;
38
return
1;
39
}
40
return
((*R->putrow) (R->fd, buf, row, R->len));
41
}
lib
rowio
put.c
Generated on Sun Mar 16 2014 05:07:47 for GRASS Programmer's Manual by
1.8.1.2