18 if (write(fd, i,
sizeof(
double) * nofNum) !=
sizeof(
double) * nofNum) {
19 Rast3d_error(
"Rast3d_write_doubles: writing to file failed");
33 for (j = 0; j < n; j++)
38 Rast3d_error(
"Rast3d_write_doubles: writing xdr to file failed");
60 if (read(fd, i,
sizeof(
double) * nofNum) !=
sizeof(
double) * nofNum) {
61 Rast3d_error(
"Rast3d_read_doubles: reading from file failed");
77 Rast3d_error(
"Rast3d_read_doubles: reading xdr from file failed");
81 for (j = 0; j < n; j++)
#define RASTER3D_XDR_DOUBLE_LENGTH
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
int Rast3d_write_doubles(int fd, int useXdr, const double *i, int nofNum)
void Rast3d_error(const char *,...) __attribute__((format(printf
int Rast3d_read_doubles(int fd, int useXdr, double *i, int nofNum)
void G_xdr_put_double(void *, const double *)
void G_xdr_get_double(double *, const void *)