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.


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] s string
Returns:
pointer to newly allocated string

Definition at line 32 of file store.c.

Referenced by 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_tokenize(), and G_whoami().


Generated on Thu Jul 16 13:20:55 2009 for GRASS Programmer's Manual by  doxygen 1.5.6