2
* \file lib/segment/close.c
4
* \brief Segment closing routine.
6
* This program is free software under the GNU General Public License
7
* (>=v2). Read the file COPYING that comes with GRASS for details.
9
* \author GRASS GIS Development Team
16
#include <grass/gis.h>
17
#include <grass/glocale.h>
18
#include "local_proto.h"
21
* \fn int Segment_close (SEGMENT *SEG)
23
* \brief Free memory allocated to segment, delete temp file.
25
* Releases the allocated memory associated with the segment file
26
* <b>seg</b> and deletes the temporary file.
28
* \param[in,out] SEG segment
29
* \return 1 if successful
30
* \return -1 if SEGMENT is not available (not open)
33
int Segment_close(SEGMENT *SEG)