--- libaitio/inc/aitio.h 2012/08/29 13:30:28 1.24.2.4 +++ libaitio/inc/aitio.h 2012/09/03 09:26:34 1.25.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.24.2.4 2012/08/29 13:30:28 misho Exp $ +* $Id: aitio.h,v 1.25.2.1 2012/09/03 09:26:34 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -547,12 +547,22 @@ inline void io_freeVar(ait_val_t ** __restrict val); */ ait_val_t *io_makeVar(ait_type_t type, ...); /* - * io_hashVar() - Generate hash key for variable + * io_sprintfVar() - Builtin string variable from formatted input * * @v = variable + * @fmt = format string + * @... = argument(s) + * return: -1 error or >0 copied bytes to variable + */ +int io_sprintfVar(ait_val_t * __restrict v, const char *fmt, ...); +/* + * io_hashVar() - Generate hash key for variable from string or value + * + * @v = variable + * @key = key string for hash, if =NULL hash will built from variable * return: hash key */ -unsigned short io_hashVar(ait_val_t * __restrict v); +unsigned short io_hashVar(ait_val_t * __restrict v, const char * __restrict key); /* * io_allocVars() - Allocate ait_val_t array *