GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
segment/release.c File Reference
#include <stdlib.h>
#include <grass/segment.h>
Include dependency graph for segment/release.c:

Go to the source code of this file.

Functions

int segment_release (SEGMENT *SEG)
 Free memory allocated to segment. More...
 

Function Documentation

int segment_release ( SEGMENT *  SEG)

Free memory allocated to segment.

Releases the allocated memory associated with the segment file seg.

Note: Does not close the file. Does not flush the data which may be pending from previous segment_put() calls.

Parameters
[in,out]seg
Returns
1 if successful
-1 if segment is not available (not open)

Definition at line 35 of file segment/release.c.

References free().

Referenced by main().