18#include "gis_local_proto.h"
20static char *file_name(
char *,
const char *,
const char *,
const char *,
21 const char *,
const char *);
22static void append_char(
char *,
char);
102 const char *
name,
const char *mapset)
131 env =
getenv(
"GRASS_VECTOR_TMPDIR_MAPSET");
132 if (env &&
strcmp(env,
"0") == 0) {
156 const char *mapset,
const char *
basedir)
161char *file_name(
char *
path,
const char *dir,
const char *
element,
162 const char *
name,
const char *mapset,
const char *base)
183 else if (mapset && *mapset)
221void append_char(
char *s,
char c)
int G_name_is_fully_qualified(const char *, char *, char *)
Check if map name is fully qualified (map @ mapset)
void G_free(void *)
Free allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
const char * G_mapset(void)
Get current mapset name.
char * G_file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
char * G_file_name_basedir(char *path, const char *element, const char *name, const char *mapset, const char *basedir)
Builds full path names to GIS data files in temporary directory (for internal use only)
char * G_file_name_misc(char *path, const char *dir, const char *element, const char *name, const char *mapset)
Builds full path names to GIS misc data files.
char * G_file_name_tmp(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files in temporary directory (for internal use only)
char * G__location_path(void)
Get current location UNIX-like path (internal use only)