--- libelwix/inc/elwix/ampool.h 2022/10/23 23:46:01 1.5.68.1 +++ libelwix/inc/elwix/ampool.h 2024/08/14 16:01:10 1.6.12.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: ampool.h,v 1.5.68.1 2022/10/23 23:46:01 misho Exp $ +* $Id: ampool.h,v 1.6.12.1 2024/08/14 16:01:10 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2022 +Copyright 2004 - 2024 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -126,6 +126,16 @@ int mpool_purge(mpool_t * __restrict mp, unsigned int * return: NULL error or !=NULL ok allocated memory */ void *mpool_malloc(mpool_t * __restrict mp, unsigned int size, const char *memname); +/* + * mpool_calloc() - Multiple memory block allocation + * + * @mp = Memory pool + * @nmemb = Number of memory blocks + * @size = Size + * @memname = Optional memory block name + * return: NULL error or !=NULL ok allocated memory + */ +void *mpool_calloc(mpool_t * __restrict mp, u_int nmemb, u_int size, const char *memname); /* * mpool_free() Free allocated memory with mpool_alloc() *