GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
zero_cell.c File Reference

GIS Library - Zero cell buffer functions. More...

#include <grass/gis.h>
Include dependency graph for zero_cell.c:

Go to the source code of this file.

Functions

int G_zero_cell_buf (CELL *buf)
 Zero a raster CELL buffer. More...
 
int G_zero_raster_buf (void *rast, RASTER_MAP_TYPE data_type)
 Zero a raster buffer. More...
 

Detailed Description

GIS Library - Zero cell buffer functions.

(C) 2001-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
GRASS GIS Development Team
Date
1999-2008

Definition in file zero_cell.c.

Function Documentation

int G_zero_cell_buf ( CELL *  buf)

Zero a raster CELL buffer.

This routines assigns each member of the raster buffer array buf to zero. It assumes that buf has been allocated using G_allocate_cell_buf.

Parameters
[in]buf
Returns
always returns 0

Definition at line 31 of file zero_cell.c.

References G_window_cols().

int G_zero_raster_buf ( void *  rast,
RASTER_MAP_TYPE  data_type 
)

Zero a raster buffer.

This routines assigns each member of the raster buffer array rast to zero. It assumes that rast has been allocated using G_allocate_cell_buf.

Parameters
[in,out]rast
[in]data_typeRASTER_MAP_TYPE
Returns
always returns 0

Definition at line 54 of file zero_cell.c.

References G_raster_size(), and G_window_cols().