GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
loc_info.c
Go to the documentation of this file.
1
#include <grass/imagery.h>
2
#include <string.h>
3
#include <grass/gis.h>
4
5
/* makes a three part title with location, mapset info */
6
int
I_location_info
(
char
*buf,
const
char
*middle)
7
{
8
char
left[80];
9
char
right[80];
10
int
len;
11
12
sprintf(left,
"LOCATION: %s"
,
G_location
());
13
sprintf(right,
"MAPSET: %s"
,
G_mapset
());
14
len = 79 - strlen(left) - strlen(middle) - strlen(right);
15
sprintf(buf,
"%s%*s%s%*s%s"
,
16
left, len / 2,
""
, middle, len / 2,
""
, right);
17
18
return
0;
19
}
lib
imagery
loc_info.c
Generated on Thu Sep 26 2013 09:48:04 for GRASS Programmer's Manual by
1.8.4