GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rowio/put.c File Reference
#include <stdio.h>
#include <string.h>
#include <grass/rowio.h>
Include dependency graph for rowio/put.c:

Go to the source code of this file.


int rowio_put (ROWIO *R, const void *buf, int row)
 write a row More...

Function Documentation

int rowio_put ( ROWIO *  R,
const void *  buf,
int  row 

write a row

Rowio_put() writes the buffer buf, which holds the data for row n, into the ROWIO structure r. If the row requested is currently in memory, the buffer is simply copied into the structure and marked as having been changed. It will be written out later. Otherwise it is written immediately. Note that when the row is finally written to disk, the putrow() routine specified in rowio_setup is called to write row n to the file. rowio_flush ( r) force pending updates to disk ROWIO *r; Rowio_flush() forces all rows modified by rowio_put to be written to the file. This routine must be called before closing the file or releasing the rowio structure if rowio_put() has been called.


Definition at line 27 of file rowio/put.c.