GRASS 8 Programmer's Manual 8.5.0(2026)-8d6ceba290
Loading...
Searching...
No Matches
alloc.c File Reference

GIS Library - Memory allocation routines. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for alloc.c:

Go to the source code of this file.

Functions

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__realloc (const char *file, int line, void *buf, size_t n)
 Memory reallocation.
void G_free (void *buf)
 Free allocated memory.
void * G_incr_void_ptr (const void *ptr, size_t size)
 Advance void pointer.

Detailed Description

GIS Library - Memory allocation routines.

(C) 1999-2009 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Original author CERL

Definition in file alloc.c.

Function Documentation

◆ G__calloc()

void * G__calloc ( const char * file,
int line,