19 #include <grass/gis.h>
20 #include <grass/glocale.h>
39 if (n >
sizeof(zeros))
50 if (n >
sizeof(zeros))
55 if (write(fd, zeros, i) < 0)
56 G_fatal_error(_(
"File writing error in %s() %d:%s"), __func__,
57 errno, strerror(errno));
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
void G_write_zeros(int fd, size_t n)
Writes n bytes of zero to file descriptor fd