| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
char *getwfdb(void) |
This function returns the current database path. For example, this code fragment
...
char *oldp, *newp;
oldp = getwfdb();
if (newp = malloc(strlen("/usr/mydb;") + strlen(oldp) + 1)) {
sprintf(newp, "/usr/mydb;%s", oldp);
setwfdb(newp);
}
...
|
adds the directory `/usr/mydb' to the beginning of the database path. (The standard `/' directory separator can be used, even under MS-DOS; if you elect to use the alternate `\', remember to quote it within a C string as `\\'.)