Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_dbuserid http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_DBUSERID

SUMMARY
   d_dbuserid(id)
   char *id;

ARGUMENTS
   id        String containing desired user identifier.

DESCRIPTION
   This function sets the database user identifier. The database identifier
   must be set before the database is opened,either by d_dbuserid or through
   use of the DBUSERID enviroment variables.


CURRENCY CHANGES
   None

RETURN CODES

   -1    S_DBOPEN      Datadase is open. Function called after d_open.

   -42   S_BADUSERID   The userid contains non-alphanumeric characters.


EXAMPLE
     char user_id[9];
     ...
     prinf ("login:");
     gets (user_id);
     if (valid_user(user_id))
         d_dbuserid (user_id);
      else
       ........

See Also: d_dbfpath d_dbdpath d_dblog

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson