14 snprintf(left, 80,
"LOCATION: %s",
G_location());
15 snprintf(right, 80,
"MAPSET: %s",
G_mapset());
16 len = 79 - strlen(left) - strlen(middle) - strlen(right);
17 buf_len = len + strlen(left) + strlen(middle) + strlen(right);
18 buf = (
char *)
G_calloc(buf_len,
sizeof(
char));
19 snprintf(buf, buf_len,
"%s%*s%s%*s%s", left, len / 2,
"", middle, len / 2,
const char * G_mapset(void)
Get current mapset name.
const char * G_location(void)
Get current location name.
char * I_location_info(const char *middle)