--- libaitcfg/src/aitcfg.c 2012/09/18 08:44:19 1.7.6.1 +++ libaitcfg/src/aitcfg.c 2012/09/18 13:24:50 1.7.6.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.c,v 1.7.6.1 2012/09/18 08:44:19 misho Exp $ +* $Id: aitcfg.c,v 1.7.6.2 2012/09/18 13:24:50 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -52,6 +52,19 @@ SUCH DAMAGE. int cfg_Errno; char cfg_Error[STRSIZ]; + +inline int +cfg_Write(FILE *f, char *fmt, ...) +{ + int ret = 0; + va_list lst; + + va_start(lst, fmt); + ret = vfprintf(f, fmt, lst); + va_end(lst); + + return ret; +} inline int cfg_tree_cmp(struct tagCfg *a, struct tagCfg *b)