squareball 0.2.0.28-7bb8 A general-purpose library for C99

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs
sb-mem.h
Go to the documentation of this file.
1 /*
2 * squareball: A general-purpose library for C99.
3 * Copyright (C) 2014-2018 Rafael G. Martins <rafael@rafaelmartins.eng.br>
4 *
5 * This program can be distributed under the terms of the BSD License.
6 * See the file LICENSE.
7 */
8
9 #ifndef _SQUAREBALL_MEM_H
10 #define _SQUAREBALL_MEM_H
11
12 #include <stddef.h>
13
29 typedef void (*sb_free_func_t) (void *ptr);
30
38 void* sb_malloc(size_t size);
39
47 void* sb_realloc(void *ptr, size_t size);
48
51 #endif /* _SQUAREBALL_MEM_H */
sb_realloc
void * sb_realloc(void *ptr, size_t size)
sb_free_func_t
void(* sb_free_func_t)(void *ptr)
Definition: sb-mem.h:29
sb_malloc
void * sb_malloc(size_t size)