GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
raster3d/mapset.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <sys/types.h>
4
#include <unistd.h>
5
#include "
raster3d_intern.h
"
6
7
/*---------------------------------------------------------------------------*/
8
9
void
Rast3d_make_mapset_map_directory
(
const
char
*mapName)
10
{
11
char
buf[
GNAME_MAX
+
sizeof
(
RASTER3D_DIRECTORY
) + 2];
12
13
sprintf(buf,
"%s/%s"
,
RASTER3D_DIRECTORY
, mapName);
14
G_make_mapset_element
(buf);
15
}
raster3d_intern.h
RASTER3D_DIRECTORY
#define RASTER3D_DIRECTORY
Definition:
raster3d.h:31
GNAME_MAX
#define GNAME_MAX
Definition:
gis.h:167
G_make_mapset_element
int G_make_mapset_element(const char *)
Create element in the current mapset.
Definition:
mapset_msc.c:38
Rast3d_make_mapset_map_directory
void Rast3d_make_mapset_map_directory(const char *mapName)
Definition:
raster3d/mapset.c:9
lib
raster3d
mapset.c
Generated on Mon May 31 2021 05:21:30 for GRASS GIS 7 Programmer's Manual by
1.8.13