20 #include <grass/gis.h>
74 sprintf(name,
"%d.%d", pid, uniq++);
77 while (
stat(path, &st) == 0);
94 strcpy(element,
".tmp");
96 if (machine !=
NULL && *machine != 0) {
98 strcat(element, machine);
char * G_mapset(void)
current mapset name
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int G__temp_element(char *element)
Populates element with a path string.
char * G_store(const char *s)
Copy string to allocated memory.
char * G_tempfile(void)
Returns a temporary file name.
char * G__machine_name(void)
char * G__file_name(char *path, const char *element, const char *name, const char *mapset)
Builds full path names to GIS data files.
int G__make_mapset_element(const char *p_element)
Create element in the current mapset.
char * G__tempfile(int pid)
Create tempfile from process id.