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
segment/release.c
Go to the documentation of this file.
1
15
#include <stdlib.h>
16
#include <grass/segment.h>
17
18
35
int
segment_release
(SEGMENT * SEG)
36
{
37
int
i;
38
39
if
(SEG->open != 1)
40
return
-1;
41
42
for
(i = 0; i < SEG->nseg; i++)
43
free(SEG->scb[i].buf);
44
free(SEG->scb);
45
46
SEG->open = 0;
47
48
return
1;
49
}
lib
segment
release.c
Generated on Sun Sep 9 2012 18:55:34 for GRASS Programmer's Manual by
1.8.1.2