GRASS GIS 7 Programmer's Manual
7.8.4(2020)-exported
|
Go to the documentation of this file.
15 #include <grass/gis.h>
16 #include <grass/glocale.h>
41 struct Cell_head window;
45 window.rows, window.cols);
47 G_fatal_error(_(
"G_malloc: unable to allocate %lu bytes of memory at %s:%d"),
48 (
unsigned long) n,
file, line);
83 struct Cell_head window;
87 window.rows, window.cols);
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);
129 struct Cell_head window;
133 window.rows, window.cols);
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 G_get_window(struct Cell_head *window)
Get the current region.
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
void * G__realloc(const char *file, int line, void *buf, size_t n)
Memory reallocation.
void G_free(void *buf)
Free allocated memory.
void G_important_message(const char *msg,...)
Print a message to stderr even in brief mode (verbosity=1)
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.
void * G_incr_void_ptr(const void *ptr, size_t size)
Advance void pointer.