15 #include <grass/imagery.h>
16 #include <grass/glocale.h>
33 if (ref->nfiles <= 0) {
34 fprintf(fd, _(
"group <%s> is empty\n"), group);
38 for (i = 0; i < ref->nfiles; i++) {
39 sprintf(buf,
"<%s@%s>", ref->file[i].name, ref->file[i].mapset);
40 len = strlen(buf) + 4;
44 fprintf(fd, _(
"group <%s> references the following raster maps\n"), group);
45 fprintf(fd,
"-------------\n");
47 for (i = 0; i < ref->nfiles; i++) {
48 sprintf(buf,
"<%s@%s>", ref->file[i].name, ref->file[i].mapset);
54 fprintf(fd,
"%-*s", max, buf);
58 fprintf(fd,
"-------------\n");
80 for (i = 0; i < ref->nfiles; i++)
81 fprintf(fd,
"%s@%s\n", ref->file[i].name, ref->file[i].mapset);
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int I_list_group_simple(const struct Ref *ref, FILE *fd)
Prints maps in a group (simple version)
int I_list_group(const char *group, const struct Ref *ref, FILE *fd)
Prints maps in a group (fancy version)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]