--- libaitio/inc/aitio.h 2011/08/31 12:46:58 1.11.2.7 +++ libaitio/inc/aitio.h 2011/08/31 12:58:27 1.11.2.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.7 2011/08/31 12:46:58 misho Exp $ +* $Id: aitio.h,v 1.11.2.8 2011/08/31 12:58:27 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -519,6 +519,14 @@ int io_sarrGrow(sarr_t * __restrict arr, int newNumIte */ inline int io_sarrVacuum(sarr_t * __restrict arr); #define io_sarrSize(_arr) (assert((_arr)), (_arr)->sarr_num) +#define io_sarrSeg(_arr) (assert((_arr)), (_arr)->sarr_seg) +/* + * io_sarrCopy() Copy source split array to destination split array + * @dest = Destination split array, after use free with io_sarrDestroy() + * @src = Source split array + * return: -1 error; >0 count of destination split array + */ +int io_sarrCopy(sarr_t ** __restrict dest, sarr_t * __restrict src); /* * io_sarrGet() - Get element from dynamic split-order array * @arr = Array