Sets a local working directory location for an embedded server model.
Declaration
NINT ctSetLocalDirectory (pTEXT localdir);
Description
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().
Return
NO_ERROR on success. c-tree error code on exception.