34 fprintf(fd,
_(
"group <%s> is empty\n"), group);
38 for (i = 0; i < ref->
nfiles; i++) {
40 len = strlen(buf) + 4;
44 fprintf(fd,
_(
"group <%s> references the following raster maps\n"),
46 fprintf(fd,
"-------------\n");
48 for (i = 0; i < ref->
nfiles; i++) {
55 fprintf(fd,
"%-*s", max, buf);
59 fprintf(fd,
"-------------\n");
81 for (i = 0; i < ref->
nfiles; i++)
102 int name_length = (int)strlen(name);
103 int mapset_length = (int)strlen(mapset);
105 if (name_length + mapset_length + 3 < 75) {
108 else if (name_length > 35 && mapset_length > 35) {
109 frmt =
"<%.33s...@%.32s...>";
111 else if (name_length > 35) {
112 sprintf(fr,
"<%%.%ds...@%%s>", 68 - mapset_length);
116 sprintf(fr,
"<%%s@%%.%ds...>", 68 - name_length);
119 snprintf(buf, 75, frmt, name, mapset);
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)
void I__list_group_name_fit(char *buf, const char *name, const char *mapset)
Formats map name to fit in a 80 column layout.