Specify the name and location of the Sybase interfaces file.
void dbsetifile(filename) char *filename;
The name of the interfaces file that gets searched during every subsequent call to dbopen. If this parameter is NULL, DB-Library will revert to the default file name.
None.
This routine lets the application specify the name and location of the interfaces file that will be searched during every subsequent call to dbopen. The interfaces file contains the name and network address of every server available on the network.
If dbsetifile has not been called, a call to dbopen initiates the following default behavior: DB-Library attempts to use a file named interfaces in the directory named by the SYBASE environment variable or logical name. If SYBASE has not been set, DB-Library attempts to use a file called interfaces in the home directory of the user named “sybase.”
See the Open Client and Open Server Configuration Guide.
On non-UNIX platforms, client applications may use a method to find server address information that is different from the UNIX interfaces file. See the Open Client and Open Server Configuration Guide for detailed information on how clients connect to servers.