Return the name of the current database.
char *dbname(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
A pointer to the null-terminated name of the current database.
dbname returns the name of the current database.
If you need to keep track of when the database changes, use dbchange.