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

Go to the source code of this file.

Functions

int G__make_mapset (const char *gisdbase_name, const char *location_name, const char *mapset_name)
 
int G_make_mapset (const char *gisdbase_name, const char *location_name, const char *mapset_name)
 create a new mapset More...
 

Function Documentation

int G__make_mapset ( const char *  gisdbase_name,
const char *  location_name,
const char *  mapset_name 
)
int G_make_mapset ( const char *  gisdbase_name,
const char *  location_name,
const char *  mapset_name 
)

create a new mapset

This function creates a new mapset in the current location, initializes default window and current window.

Parameters
char* gisdbase_name The full path of GISDBASE to create mapset in. If NULL then current GISDBASE is used.
char* location_name The name location to create mapset in. If NULL then current location is used.
char* mapset_name The name of the new mapset. Should not include the full path, the mapset will be created within the current database and location.
Returns
Returns 0 on success, or generates a fatal error on failure. The G__make_mapset() function operates the same, but returns a non-zero error code on failure, instead of terminating.

Definition at line 105 of file make_mapset.c.

References err, G__make_mapset(), and G_fatal_error().