mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-28 19:06:42 -05:00
Adds cmalloc() wrapper.
This commit is contained in:
parent
ce2d03bd80
commit
0c65dbbb48
2 changed files with 11 additions and 0 deletions
|
|
@ -1505,6 +1505,11 @@ void* malloc_nofail(size_t size)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
void* cmalloc_nofail(size_t count, size_t size)
|
||||
{
|
||||
return malloc_nofail(count * size);
|
||||
}
|
||||
|
||||
char* strdup_nofail(const char* str)
|
||||
{
|
||||
size_t size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue