GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
store.c File Reference

GIS Library - String storage functions. More...

#include <grass/gis.h>
#include <string.h>
Include dependency graph for store.c:

Go to the source code of this file.

Functions

char * G_store (const char *s)
 Copy string to allocated memory. More...
 

Detailed Description

GIS Library - String storage functions.

(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.

Author
GRASS GIS Development Team
Date
1999-2008

Definition in file store.c.

Function Documentation

char* G_store ( const char *  s)

Copy string to allocated memory.

This routine allocates enough memory to hold the string s, copies s to the allocated memory, and returns a pointer to the allocated memory.

Parameters
[in]sstring
Returns
pointer to newly allocated string

Definition at line 32 of file store.c.

References buf.

Referenced by add_login(), append_item(), create_pad(), db_get_default_database_name(), db_get_default_driver_name(), db_get_default_group_name(), db_get_default_schema_name(), db_get_login(), db_set_login(), db_whoami(), dig_read_frmt_ascii(), E_edit_cats(), E_edit_fp_cats(), F_generate(), font_get_charset(), font_init_charset(), font_init_freetype(), G3d_fillHeader(), G3d_getWindowParams(), G3d_initDefaults(), G3d_keyGetString(), G3d_openCellNew(), G3d_openCellOldNoHeader(), G3d_setUnit(), G__get_window(), G__home(), G__ls(), G__open_cell_old(), G__read_Cell_head(), G__set_gisrc_file(), G__tempfile(), G_available_mapsets(), G_fully_qualified_name(), G_get_cell_title(), G_get_dig_title(), G_get_gdal_link(), G_parser(), G_putenv(), G_set_ask_return_msg(), G_set_d_raster_cat(), G_set_program_name(), G_set_raster_cats_fmt(), G_set_raster_cats_title(), G_site_put_head(), G_sites_open_old(), G_tokenize(), G_whoami(), GP_get_sitename(), GP_load_site(), GPJ__get_datum_params(), GPJ__get_ellipsoid_params(), GPJ_get_datum_by_name(), GPJ_get_datum_transform_by_name(), GPJ_get_default_datum_params_by_name(), GPJ_get_ellipsoid_by_name(), GPJ_grass_to_osr(), GPJ_grass_to_wkt(), GPJ_osr_to_grass(), gsds_newh(), GV_get_vectname(), GV_load_vector(), gvl_file_newh(), I_SetClassTitle(), I_SetSigTitle(), LOC_pad_get_item(), LOC_pad_list(), LOC_pad_list_items(), parse_freetypecap(), R_parse_monitorcap(), read_datum_table(), read_ellipsoid_table(), read_pgm(), read_ppm(), set_value(), Vect__open_old(), Vect_add_dblink(), Vect_default_field_info(), Vect_get_column_names(), Vect_get_column_names_types(), Vect_get_column_types(), Vect_get_dblink(), Vect_get_proj_name(), Vect_maptype_info(), Vect_open_new(), Vect_set_comment(), Vect_set_date(), Vect_set_map_date(), Vect_set_map_name(), Vect_set_organization(), Vect_set_person(), Vect_subst_var(), write_pgm(), and write_ppm().