GRASS GIS 8 Programmer's Manual 8.4.1(2025)-45ca3179ab
|
Key_Value management. More...
#include <errno.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
void | G_write_key_value_file (const char *file, const struct Key_Value *kv) |
Write key/value pairs to file. | |
struct Key_Value * | G_read_key_value_file (const char *file) |
Read key/values pairs from file. | |
Key_Value management.
(C) 2001-2008, 2012 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_value3.c.
struct Key_Value * G_read_key_value_file | ( | const char * | file | ) |
Read key/values pairs from file.
Allocated memory must be freed G_free_key_value(). Call G_fatal_error() when unable to read key/value items from the file.
[in] | file | filename for reading |
Definition at line 55 of file key_value3.c.
References file, G_fatal_error(), and G_fread_key_value().
Referenced by G_get_ellipsoid_parameters(), G_get_projepsg(), G_get_projinfo(), G_get_projunits(), G_lookup_key_value_from_file(), and G_update_key_value_file().
void G_write_key_value_file | ( | const char * | file, |
const struct Key_Value * | kv ) |
Write key/value pairs to file.
file | filename for writing |
kv | pointer Key_Value structure |
Definition at line 28 of file key_value3.c.
References file, G_fatal_error(), and G_fwrite_key_value().
Referenced by G_make_location(), G_make_location_epsg(), and G_update_key_value_file().