GRASS Programmer's Manual
6.4.4(2014)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
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
}
rowio_put
int rowio_put(ROWIO *R, const void *buf, int row)
write a row
Definition:
rowio/put.c:27
lib
rowio
put.c
Generated on Wed Mar 18 2015 05:21:43 for GRASS Programmer's Manual by
1.8.9.1