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