Macros LIBISO_ALLOC_MEM, LIBISO_FREE_MEM for replaceing local variables

This commit is contained in:
2011-06-09 14:23:21 +02:00
parent 45d316d1ca
commit f08ae22dbe
2 changed files with 24 additions and 0 deletions

View File

@ -1886,4 +1886,14 @@ ex:;
return ret;
}
void *iso_alloc_mem(size_t size, size_t count, int flag)
{
void *pt;
pt = calloc(size, count);
if(pt == NULL)
iso_msg_submit(-1, ISO_OUT_OF_MEM, 0, "Out of virtual memory");
return pt;
}