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

Go to the source code of this file.

Functions

int segment_setup (SEGMENT *SEG)
 Setup segment. More...
 

Function Documentation

int segment_setup ( SEGMENT *  SEG)

Setup segment.

SEG must have the following parms set: fd (open for read and write), nrows, ncols, srows, scols, len, nseg

Parameters
[in,out]SEGsegment
Returns
1 if successful
-1 if illegal parameters are passed in SEG
-2 if unable to allocate memory

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

References G_warning(), int, and NULL.

Referenced by segment_init().