Device Function

Database Name

dev_DatabaseName()

Retrieve the name of the current device database.

Syntax
#include "device.h"

LMessage dev_DatabaseName
    (
         void
    );
Description

dev_DatabaseName() retrieves the name the currently loaded device database.

Return Values

If successful, dev_DatabaseName() returns a non-NULL pointer to the name of the device database. Otherwise, it returns a non-NULL pointer to an invalid name string. It never returns NULL.

See Also

dev_DeviceName()
dev_GetDatabaseName()
dev_GetDeviceName()

Example
if (dev_Initialize(NULL) < 0)
{
    LOG("Failure loading default database.");
}
else
{
    LOG("Device database '%s' loaded", dev_DatabaseName());
}