GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
title.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <grass/imagery.h>
3
4
5
int
I_get_group_title
(
const
char
*group,
char
*
title
,
int
n)
6
{
7
FILE *fd;
8
9
*title = 0;
10
G_suppress_warnings
(1);
11
fd =
I_fopen_group_file_old
(group,
"TITLE"
);
12
G_suppress_warnings
(0);
13
if
(fd !=
NULL
) {
14
G_getl2
(title, n, fd);
15
fclose(fd);
16
}
17
18
return
(fd !=
NULL
);
19
}
20
21
22
int
I_put_group_title
(
const
char
*group,
const
char
*
title
)
23
{
24
FILE *fd;
25
26
fd =
I_fopen_group_file_new
(group,
"TITLE"
);
27
if
(fd !=
NULL
) {
28
fprintf(fd,
"%s\n"
, title);
29
fclose(fd);
30
}
31
32
return
(fd !=
NULL
);
33
}
lib
imagery
title.c
Generated on Sun Sep 9 2012 18:55:35 for GRASS Programmer's Manual by
1.8.1.2