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");