15 #include <grass/imagery.h>
16 #include <grass/glocale.h>
28 const char *subgroup,
const struct Ref *ref, FILE *
fd)
35 if (ref->nfiles <= 0) {
36 fprintf(fd, _(
"subgroup <%s> of group <%s> is empty\n"),
41 for (i = 0; i < ref->nfiles; i++) {
42 sprintf(buf,
"<%s@%s>", ref->file[i].name, ref->file[i].mapset);
43 len = strlen(buf) + 4;
48 _(
"subgroup <%s> of group <%s> references the following raster maps\n"),
50 fprintf(fd,
"-------------\n");
52 for (i = 0; i < ref->nfiles; i++) {
53 sprintf(buf,
"<%s@%s>", ref->file[i].name, ref->file[i].mapset);
59 fprintf(fd,
"%-*s", max, buf);
63 fprintf(fd,
"-------------\n");
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int I_list_group_simple(const struct Ref *ref, FILE *fd)
Prints maps in a group (simple version)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int I_list_subgroup(const char *group, const char *subgroup, const struct Ref *ref, FILE *fd)
Prints maps in a subgroup (fancy version)
int I_list_subgroup_simple(const struct Ref *ref, FILE *fd)
Prints maps in a subgroup (simple version)