Set the user server password in the LOGINREC structure.
RETCODE DBSETLPWD(loginrec, password) LOGINREC *loginrec; char *password;
A pointer to a LOGINREC structure, which will be passed as an argument to dbopen. You can allocate a LOGINREC structure by calling dblogin.
The password that will be sent to the server. It must be a null-terminated character string. The maximum length of the string, not including the null terminator, is 30 characters.
SUCCEED or FAIL.
This macro sets the user server password in the LOGINREC structure. For it to have any effect, it must be called before dbopen.
By default, the password field of the LOGINREC has a null value. Therefore, you do not need to call this routine if the password is a null value.
DB-Library does not automatically blank out the password in loginrec after a call to dbopen. Therefore, if you want to minimize the risk of having a readable password in your DB-Library program, you should set password to something else after you call dblogin.