|
GRASS 8 Programmer's Manual
8.5.0dev(2025)-9d806b45d8
|
Segment closing routine. More...
#include <unistd.h>#include <fcntl.h>#include <grass/gis.h>#include <grass/glocale.h>#include "local_proto.h"
Go to the source code of this file.
Functions | |
| int | Segment_close (SEGMENT *SEG) |
| Free memory allocated to segment, delete temp file. More... | |
Segment closing routine.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file segment/close.c.
| int Segment_close | ( | SEGMENT * | SEG | ) |
Free memory allocated to segment, delete temp file.
Releases the allocated memory associated with the segment file seg and deletes the temporary file.
| [in,out] | SEG | segment |
Definition at line 32 of file segment/close.c.
References SEGMENT::cache, close, SEGMENT::fd, SEGMENT::fname, G_free(), NULL, SEGMENT::open, Segment_release(), and unlink.