24 #include <sys/types.h>
26 #include <grass/glocale.h>
27 #include <grass/gis.h>
28 #include <grass/Vect.h>
29 #include <grass/dbmi.h>
42 int num_dblinks, ncols, col;
43 struct field_info *fi;
48 char buf[2000], temp_buf[2000];
56 "Displaying column names for database connection of layer %d:",
74 for (col = 0; col < ncols; col++) {
79 sprintf(temp_buf,
",%s",
81 strcat(buf, temp_buf);
103 int num_dblinks, ncols, col;
104 struct field_info *fi;
109 char buf[2000], temp_buf[2000];
113 if (num_dblinks <= 0)
117 "Displaying column types for database connection of layer %d:",
135 for (col = 0; col < ncols; col++) {
141 sprintf(temp_buf,
",%s",
144 strcat(buf, temp_buf);
167 int num_dblinks, ncols, col;
168 struct field_info *fi;
173 char buf[2000], temp_buf[2000];
177 if (num_dblinks <= 0)
181 "Displaying column types for database connection of layer %d:",
199 for (col = 0; col < ncols; col++) {
201 sprintf(buf,
"%s(%s)",
206 sprintf(temp_buf,
",%s(%s)",
210 strcat(buf, temp_buf);