23 static unsigned int get_2(
const unsigned char **q)
25 const unsigned char *p = *q;
26 unsigned int n = (p[0] << 0) | (p[1] << 8);
32 static unsigned int get_4(
const unsigned char **q)
34 const unsigned char *p = *q;
35 unsigned int n = (p[0] << 0) | (p[1] << 8) | (p[2] << 16) | (p[3] << 24);
41 static int read_bmp_header(
const unsigned char *p)
91 if (fread(header,
sizeof(header), 1, input) != 1)
95 if (!read_bmp_header(header))
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void cairo_read_bmp(void)
GRASS cairo display driver - header file.