tfs/rdmAllocDatabase.c
RDM_RETCODE exampleRdm_rdmAllocDatabase (const char *databaseName)
{
RDM_TFS tfs;
RDM_DB db;
rc = rdm_rdmAllocDatabase (&db);
if (rc == sOKAY)
{
rc = rdm_dbOpen (db, databaseName, RDM_OPEN_SHARED);
if (rc == sOKAY)
{
printf ("Database (%s) is open!\n", databaseName);
rc = rdm_dbClose (db);
}
rc = rdm_dbFree (db);
}
return rc;
}