G:/ScriptBasic/source/testconf.c

Go to the documentation of this file.
00001 
00002 #include <stdio.h>
00003 #include "conftree.h"
00004 
00005 main(){
00006 
00007   tConfigTree MyCONF;
00008   CFT_NODE Node;
00009   char *pszValue;
00010 
00011  printf("%d\n",
00012   cft_start(&MyCONF,NULL,NULL,NULL,
00013 #ifdef WIN32
00014             "Software\\ScriptBasic\\config",
00015             "WINNT\\SCRIBA.INI",
00016 #else
00017             "SCRIBACONF",
00018             "/etc/scriba/basic.conf",
00019 #endif
00020             NULL));
00021 
00022   for( Node = 0;  ! cft_GetEx(&MyCONF,"include",&Node,&pszValue,NULL,NULL,NULL) ; Node = cft_EnumNext(&MyCONF,Node) ){
00023     printf("include %s\n",pszValue);
00024     }
00025 
00026   }

Generated on Sun Mar 12 23:56:31 2006 for ScriptBasic by  doxygen 1.4.6-NO