47 G_fatal_error(
_(
"G_malloc: unable to allocate %lu bytes of memory at %s:%d"),
48 (
unsigned long) n, file, line);
89 G_fatal_error(
_(
"G_calloc: unable to allocate %lu * %lu bytes of memory at %s:%d"),
90 (
unsigned long) m, (
unsigned long) n, file, line);
126 buf = realloc(buf, n);
135 G_fatal_error(
_(
"G_realloc: unable to allocate %lu bytes of memory at %s:%d"),
136 (
unsigned long) n, file, line);
185 #ifndef G_incr_void_ptr 189 return (
void *)((
const unsigned char *)ptr + size);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_free(void *buf)
Free allocated memory.
void void void G_important_message(const char *,...) __attribute__((format(printf
2D/3D raster map header (used also for region)
#define G_incr_void_ptr(ptr, size)
void * G__realloc(const char *file, int line, void *buf, size_t n)
Memory reallocation.
void * G__malloc(const char *file, int line, size_t n)
Memory allocation.
void * G__calloc(const char *file, int line, size_t m, size_t n)
Memory allocation.
int cols
Number of columns for 2D data.
int rows
Number of rows for 2D data.
void G_get_window(struct Cell_head *)
Get the current region.