home
·
contact
·
privacy
projects
/
plomrogue
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove tasks from TODO considered of no need.
[plomrogue]
/
src
/
common
/
try_malloc.h
1
/* src/common/try_malloc.h
2
*
3
* malloc() wrapper.
4
*/
5
6
#ifndef TRY_MALLOC_H
7
#define TRY_MALLOC_H
8
9
#include <sys/types.h> /* for size_t */
10
11
12
13
/* Call malloc("size") from function called "f"; exit_trouble() on error. */
14
extern void * try_malloc(size_t size, const char * f);
15
16
17
18
#endif