00001 /* 00002 * squareball: A general-purpose library for C99. 00003 * Copyright (C) 2014-2016 Rafael G. Martins <rafael@rafaelmartins.eng.br> 00004 * 00005 * This program can be distributed under the terms of the BSD License. 00006 * See the file LICENSE. 00007 */ 00008 00009 #ifndef _SQUAREBALL_MEM_H 00010 #define _SQUAREBALL_MEM_H 00011 00012 #include <stddef.h> 00013 00029 typedef void (*sb_free_func_t) (void *ptr); 00030 00038 void* sb_malloc(size_t size); 00039 00047 void* sb_realloc(void *ptr, size_t size); 00048 00051 #endif /* _SQUAREBALL_MEM_H */