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