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

Go to the source code of this file.

Functions

char * G_mapset (void)
 current mapset name More...
 
char * G__mapset (void)
 

Function Documentation

char* G__mapset ( void  )

Definition at line 63 of file mapset.c.

References G__getenv().

Referenced by G_mapset().

char* G_mapset ( void  )

current mapset name

Returns the name of the current mapset in the current location. This routine is often used when accessing files in the current mapset. See Mapsets for an explanation of mapsets.

Parameters
void
Returns
char *

Definition at line 31 of file mapset.c.

References first, G__mapset(), G__mapset_permissions(), G_fatal_error(), and NULL.

Referenced by db_set_default_connection(), E_edit_fp_cats(), E_edit_history(), G3d_maskFileExists(), G3d_maskOpenOld(), G3d_openCellNew(), G3d_removeColor(), G__check_for_auto_masking(), G__file_name(), G__file_name_misc(), G__gisinit(), G__make_mapset_element(), G__mask_info(), G__quant_export(), G__quant_import(), G__raster_misc_write_line(), G__tempfile(), G__write_cats(), G_check_input_output_name(), G_fopen_append(), G_fopen_append_misc(), G_fopen_modify(), G_fopen_modify_misc(), G_fopen_new(), G_fopen_new_misc(), G_get_window(), G_open_new(), G_open_new_misc(), G_open_update(), G_open_update_misc(), G_put_cell_title(), G_put_reclass(), G_read_colors(), G_remove_colors(), G_rename(), G_short_history(), G_write_colors(), G_write_fp_range(), G_write_range(), Gs_save_3dview(), I_find_group(), I_find_group_file(), I_find_subgroup(), I_find_subgroup_file(), I_fopen_group_file_append(), I_fopen_group_file_new(), I_fopen_group_file_old(), I_fopen_signature_file_old(), I_fopen_sigset_file_new(), I_fopen_sigset_file_old(), I_fopen_subgroup_file_append(), I_fopen_subgroup_file_new(), I_fopen_subgroup_file_old(), I_get_control_points(), I_get_group(), I_list_groups(), I_list_subgroups(), I_location_info(), I_put_control_points(), IL_resample_output_2d(), main(), V1_open_new_nat(), V2_close_ogr(), Vect__open_old(), Vect_check_input_output_name(), Vect_close(), Vect_copy(), Vect_delete(), Vect_hist_command(), Vect_open_new(), Vect_rename(), and Vect_set_db_updated().