--- libaitcfg/inc/aitcfg.h 2009/09/09 09:29:37 1.2.2.1 +++ libaitcfg/inc/aitcfg.h 2009/09/09 10:44:41 1.2.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.2.2.1 2009/09/09 09:29:37 misho Exp $ +* $Id: aitcfg.h,v 1.2.2.2 2009/09/09 10:44:41 misho Exp $ * *************************************************************************/ #ifndef __AITCFG_H @@ -30,6 +30,13 @@ typedef struct tagHead sl_config; * return: 0 ok; -1 error:: new head element is null */ inline int InitConfig(sl_config * __restrict cfg); +/* + * cfg_CreateConfig() Create config file from memory without whitespaces! + * @csConfigName = New config filename + * @cfg = Head list element + * return: 0 ok; -1 error:: can`t save new config +*/ +int cfg_CreateConfig(const char *csConfigName, sl_config * __restrict cfg); /* * CreateConfig() Create config file from memory * @csConfigName = New config filename