informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_get_dbnames()

The mi_get_dbnames() function retrieves the names of all databases available on the database server, corresponding to the logged-in connection

Syntax

Usage

The mi_get_dbnames() function copies database names into dbnamesb (up to dbnamesbsize) and copies database-name pointers get into dbnameps (up to dbnamepssize). The user allocates dbnamesb and dbnamesps.

If the connection is not logged in, this function retrieves the names of databases available on $INFORMIXSERVER. If the connection is not provided (conn argument is NULL), this function retrieves the names of databases on all database servers.

Return Values

>=0 is the number of retrieved database names.
MI_ERROR indicates that the function was not successful.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved