svn-gvsig-desktop / tags / v1_9_Build_1246 / libraries / libjni-proj4 / src / pj_malloc.c @ 33782
History | View | Annotate | Download (417 Bytes)
1 |
/* allocate and deallocate memory */
|
---|---|
2 |
#ifndef lint
|
3 |
static const char SCCSID[]="@(#)pj_malloc.c 4.3 93/06/12 GIE REL"; |
4 |
#endif
|
5 |
/* These routines are used so that applications can readily replace
|
6 |
** projection system memory allocation/deallocation call with custom
|
7 |
** application procedures. */
|
8 |
#include <projects.h> |
9 |
void *
|
10 |
pj_malloc(size_t size) { |
11 |
return(malloc(size));
|
12 |
} |
13 |
void
|
14 |
pj_dalloc(void *ptr) {
|
15 |
free(ptr); |
16 |
} |