GRASS 8 Programmer's Manual 8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
gis/zero.c
Go to the documentation of this file.
1/*!
2 * \file lib/gis/zero.c
3 *
4 * \brief GIS Library - Zeroing functions.
5 *
6 * SPDX-FileCopyrightText: 2001-2009 GRASS Development Team
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 * \author Original author CERL
10 */
11
12#include <string.h>
13#include <grass/gis.h>
14
15/*!
16 * \brief Zero out a buffer, <b>buf</b>, of length <b>i</b>.
17 *
18 * \param[out] buf
19 * \param i number of bytes to be zeroed
20 */
21void G_zero(void *buf, int i)
22{
23 memset(buf, 0, i);
24}
void G_zero(void *buf, int i)
Zero out a buffer, buf, of length i.
Definition gis/zero.c:21