GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
writ_zeros.c File Reference

GIS Library - Write zero functions. More...

#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for writ_zeros.c:

Go to the source code of this file.

Functions

void G_write_zeros (int fd, size_t n)
 Writes n bytes of zero to file descriptor fd
 

Detailed Description

GIS Library - Write zero functions.

SPDX-FileCopyrightText: 2001-2014 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
GRASS Development Team
Date
1999-2014

Definition in file writ_zeros.c.

Function Documentation

◆ G_write_zeros()

void G_write_zeros ( int  fd,
size_t  n 
)

Writes n bytes of zero to file descriptor fd

Parameters
[in]fdfile descriptor
[in]nnumber of bytes to write
Returns

Definition at line 27 of file writ_zeros.c.

References _, G_fatal_error(), and write.