GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
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 */
23void db_zero(void *s, int n)
24{
25 char *c = (char *)s;
26
27 while (n-- > 0)
28 *c++ = 0;
29}
void db_zero(void *s, int n)
Zero allocated space.
Main header of GRASS DataBase Management Interface.