--- libaitio/inc/aitio.h 2011/12/12 14:45:19 1.12.2.9 +++ libaitio/inc/aitio.h 2011/12/12 15:22:19 1.12.2.10 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.12.2.9 2011/12/12 14:45:19 misho Exp $ +* $Id: aitio.h,v 1.12.2.10 2011/12/12 15:22:19 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -320,7 +320,7 @@ inline array_t *io_allocVars(u_int varnum); /* * io_clrVars() Clear ait_val_t elements from array * @vars = Variable array - * return: size of array + * return: -1 error or size of array */ inline int io_clrVars(array_t * __restrict vars); /* @@ -329,6 +329,8 @@ inline int io_clrVars(array_t * __restrict vars); * return: none */ inline void io_freeVars(array_t ** __restrict vars); + +#define io_elemVars(_vars, _n, _val) ((ait_val_t*) io_arrayElem((_vars), (_n), (_val))) /* * ioPromptRead() Read data from input h[0] with prompt to output h[1]