GRASS 8 Programmer's Manual
8.6.0dev(2026)-55de52a352
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
SPDX-FileCopyrightText: 1999-2009, 2011 GRASS Development Team
7
SPDX-License-Identifier: GPL-2.0-or-later
8
9
\author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
10
\author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
11
*/
12
13
#include <
grass/dbmi.h
>
14
15
/*!
16
\brief Zero allocated space
17
18
\param s pointer to memory
19
\param n number of bytes
20
*/
21
void
db_zero
(
void
*s,
int
n)
22
{
23
char
*c = (
char
*)s;
24
25
while
(n-- > 0)
26
*c++ = 0;
27
}
db_zero
void db_zero(void *s, int n)
Zero allocated space.
Definition
db/dbmi_base/zero.c:21
dbmi.h
Main header of GRASS DataBase Management Interface.
lib
db
dbmi_base
zero.c
Generated on Thu Sep 10 2026 06:57:37 for GRASS 8 Programmer's Manual by
1.9.8