Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic


Sets a local working directory location for an embedded server model.


NINT ctSetLocalDirectory (pTEXT localdir);


  • localdir - directory path string to set as the working directory.

ctSetLocalDirectory() sets the server's working directory area as usually defined with a LOCAL_DIRECTORY configuration option.

LOCAL_DIRECTORY is the default location where database files will be created. Your transaction logs and other housekeeping files will also be located in this area. This API call is expected to be made before starting an embedded database engine; that is, before a call to ctdbStartDatabaseEngine() or ctThrdInit().


NO_ERROR on success. c-tree error code on exception.