9 #include <grass/imagery.h>
10 static int ask_group(
char *,
char *);
28 prompt =
"Select an imagery group file";
29 if (!ask_group(prompt, group))
33 fprintf(stderr,
"\n** %s - not found **\n\n", group);
37 static int ask_group(
char *prompt,
char *group)
42 fprintf(stderr,
"\n%s\n", prompt);
44 "Enter 'list' for a list of existing imagery groups\n");
45 fprintf(stderr,
"Enter 'list -f' for a verbose listing\n");
47 fprintf(stderr,
"> ");
52 fprintf(stderr,
"<%s>\n", buf);
56 if (strcmp(buf,
"list") == 0)
58 else if (strcmp(buf,
"list -f") == 0)
61 fprintf(stderr,
"\n** <%s> - illegal name **\n\n", buf);
char * G_get_ask_return_msg()
get Hit RETURN msg
int I_find_group(const char *group)
does group exist?
int I_ask_group_old(char *prompt, char *group)
prompt for an existing group
int I_list_groups(int full)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
char * G_squeeze(char *line)
Remove superfluous white space.
int G_legal_filename(const char *s)
Check for legal database file name.