Obtain available databases
From within the Informix® ESQL/C application, you can obtain the name of the databases that are available from a specified database server with the sqgetdbs() function. This function returns the names of the databases that are available in the database server of the current connection. For more information about sqgetdbs(), see The timeout program.