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