source: trunk/sys/TinyGL/src/memory.c @ 128

Last change on this file since 128 was 1, checked in by alain, 8 years ago

First import

File size: 269 bytes
RevLine 
[1]1/*
2 * Memory allocator for TinyGL
3 */
4#include "zgl.h"
5
6/* modify these functions so that they suit your needs */
7
8void gl_free(void *p)
9{
10    free(p);
11}
12
13void *gl_malloc(int size)
14{
15    return malloc(size);
16}
17
18void *gl_zalloc(int size)
19{
20    return calloc(1, size);
21}
Note: See TracBrowser for help on using the repository browser.