home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / asm_programming / MJRDEVEL.ARC / USRACC.H < prev   
Text File  |  1989-03-01  |  3KB  |  44 lines

  1. /*   GALACTICOMM Major BBS user account header file                        */
  2. /*   Copyright (C) 1987-1989 GALACTICOMM, Inc.    All Rights Reserved.     */
  3.  
  4. #define UIDSIZ 10             /* user-id size (including trailing zero)    */
  5. #define PSWSIZ 10             /* password size (ditto)                     */
  6. #define NADSIZ 30             /* name/address line size (ditto)            */
  7. #define PHOSIZ 16             /* phone number field size (ditto)           */
  8. #define DATSIZ 10             /* date size (ditto, plus 1 for alignment)   */
  9. #define USRACCSPARE (252-202) /* spare space, decrease when adding entries */
  10.  
  11. struct usracc {
  12.      char userid[UIDSIZ];     /* user-id                                   */
  13.      char psword[PSWSIZ];     /* password                                  */
  14.      char usrnam[NADSIZ];     /* user name                                 */
  15.      char usrad1[NADSIZ];     /* address line 1 (company)                  */
  16.      char usrad2[NADSIZ];     /* address line 2                            */
  17.      char usrad3[NADSIZ];     /* address line 3                            */
  18.      char usrpho[PHOSIZ];     /* phone number                              */
  19.      char systyp;             /* system type code                          */
  20.      char ansifl;             /* ANSI flags                                */
  21.      char scnwid;             /* screen width in columns                   */
  22.      char scnlen;             /* screen length in lines                    */
  23.      int age;                 /* user's age                                */
  24.      int sex;                 /* user's sex ('M' or 'F')                   */
  25.      char credat[DATSIZ];     /* account creation date                     */
  26.      char usedat[DATSIZ];     /* date of last use of account               */
  27.      long frescu;             /* free seconds used to date                 */
  28.      long tcktot;             /* total "live" seconds credited             */
  29.      long tckpai;             /* portion of "live" seconds paid for        */
  30.      long tckavl;             /* "live" seconds available at the moment    */
  31.      int csicnt;              /* classified-ad counts used so far          */
  32.      char spare[USRACCSPARE]; /* spare space, for graceful upgrades        */
  33. };
  34.  
  35.                               /* ansifl bit definitions                    */
  36. #define ANSON  1              /*   ANSI on=1; off=0                        */
  37. #define ANSMAN 2              /*   ANSI manual override (0=auto sensing)   */
  38.  
  39. extern
  40. struct usracc *usracc,        /* user accounting block array               */
  41.               *usaptr,        /* user accounting block pointer for usrnum  */
  42.               *othuap;        /* gen purp other-user accounting data ptr   */
  43.  
  44.