GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
db/dbmi_base/zero.c
Go to the documentation of this file.
1
/*!
2
\file lib/db/dbmi_base/zero.c
3
4
\brief DBMI Library (base) - zero
5
6
(C) 1999-2009, 2011 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
12
\author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
13
*/
14
15
#include <
grass/dbmi.h
>
16
17
/*!
18
\brief Zero allocated space
19
20
\param s pointer to memory
21
\param n number of bytes
22
*/
23
void
db_zero
(
void
*s,
int
n)
24
{
25
char
*c = (
char
*)s;
26
27
while
(n-- > 0)
28
*c++ = 0;
29
}
dbmi.h
db_zero
void db_zero(void *s, int n)
Zero allocated space.
Definition:
db/dbmi_base/zero.c:23
lib
db
dbmi_base
zero.c
Generated on Tue Feb 14 2023 05:56:02 for GRASS GIS 8 Programmer's Manual by
1.8.13