GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Read/write Key_Value from/to file. More...
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_fwrite_key_value (FILE *fd, const struct Key_Value *kv) |
Write key/value pairs to file. More... | |
struct Key_Value * | G_fread_key_value (FILE *fd) |
Read key/values pairs from file. More... | |
Read/write Key_Value from/to file.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file key_value2.c.
struct Key_Value* G_fread_key_value | ( | FILE * | fd | ) |
Read key/values pairs from file.
Allocated memory must be freed G_free_key_value().
[in] | fd | file to read key/values from |
Definition at line 51 of file key_value2.c.
References buf, G_create_key_value(), G_free_key_value(), G_getl2(), G_set_key_value(), G_strip(), NULL, and value.
Referenced by G_get_gdal_link(), and G_read_key_value_file().
int G_fwrite_key_value | ( | FILE * | fd, |
const struct Key_Value * | kv | ||
) |
Write key/value pairs to file.
[in,out] | fd | file to write to |
[in] | kv | Key_Value structure |
Definition at line 27 of file key_value2.c.
Referenced by G_write_key_value_file().