#include #include "libCfg.h" #include "libCfg_local.h" /* * StrHier Source - node in Projects tree * * Return a static string to the Database path for the source. */ char *DbfFile(StrHier Source) { static char fname[256]; char *path; memset(fname, 0, sizeof(fname)); if ((path = CfgPath(Source, "DatabasePath", 3)) == NULL) { return NULL; } strcpy(fname, path); strcat(fname, "/"); strcat(fname, "Database"); strcat(fname, "/"); strcat(fname, StrHierName(StrHierParent(Source))); return fname; }