34 #include <grass/gis.h>
35 #include <grass/glocale.h>
37 static int lister(
char *,
char *,
char *);
54 return G_ask_new_ext(prompt, name,
"cell",
"raster", _(
"with titles"),
72 return G_ask_old_ext(prompt, name,
"cell",
"raster", _(
"with titles"),
91 _(
"with titles"), lister);
96 return G_ask_any_ext(prompt, name,
"cell",
"raster", 1, _(
"with titles"),
100 static int lister(
char *
name,
char *mapset,
char *
buf)
110 strcpy(buf, _(
"(no title)"));
void G_free(void *buf)
Free allocated memory.
char * G_get_cell_title(const char *name, const char *mapset)
get raster map title
char * G_ask_cell_any(const char *prompt, char *name)
char * G_ask_cell_in_mapset(const char *prompt, char *name)
prompt for existing raster map
char * G_ask_old_ext(const char *prompt, char *name, char *element, char *desc, char *option, int(*lister)())
char * G_ask_cell_old(const char *prompt, char *name)
prompt for existing raster map
char * G_ask_cell_new(const char *prompt, char *name)
prompt for new raster map
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
char * G_ask_in_mapset_ext(const char *prompt, char *name, char *element, char *desc, char *option, int(*lister)())
char * G_ask_any_ext(const char *prompt, char *name, char *element, char *desc, int warn, char *option, int(*lister)())
char * G_ask_new_ext(const char *prompt, char *name, char *element, char *desc, char *option, int(*lister)())