home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / DOOG / CBASE09.ZIP / CBASE.ZIP / ROLO.H < prev   
Text File  |  1989-08-31  |  2KB  |  52 lines

  1. /*    Copyright (c) 1989 Citadel    */
  2. /*       All Rights Reserved        */
  3.  
  4. /* #ident    "rolo.h    1.1 - 89/08/31" */
  5.  
  6. #ifndef ROLO_H        /* prevent multiple includes */
  7. #define ROLO_H
  8.  
  9. /* cbase name */
  10. #define ROLO    ("rolo.dat")
  11.  
  12. /* record definition */
  13. typedef struct {
  14.     char rl_contact[81];    /* contact name */
  15.     char rl_title[81];    /* contact job title */
  16.     char rl_company[81];    /* company name */
  17.     char rl_addr[4][81];    /* company address */
  18.     char rl_phone[20];    /* phone number */
  19.     char rl_fax[11];    /* fax number */
  20.     char rl_notes[5][81];    /* notes */
  21. } rolo_t;
  22.  
  23. /* field numbers */
  24. #define RL_CONTACT    (1)
  25. #define RL_TITLE    (2)
  26. #define RL_COMPANY    (3)
  27. #define RL_ADDR        (4)
  28. #define RL_PHONE    (5)
  29. #define RL_FAX        (6)
  30. #define RL_NOTES    (7)
  31. #define RL_FLDCNT    (7)
  32.  
  33. /* field definitions */
  34. cbfield_t rl_fields[] = {
  35.     {offsetof(rolo_t, rl_contact[0]), sizeofm(rolo_t, rl_contact), t_string,
  36.                                           CBFKEY | CBFUNIQ, "rl_cont.key"},
  37.     {offsetof(rolo_t, rl_title[0]),   sizeofm(rolo_t, rl_title),   t_string,
  38.                                                                     0, ""},
  39.     {offsetof(rolo_t, rl_company[0]), sizeofm(rolo_t, rl_company), t_string,
  40.                                                     CBFKEY, "rl_comp.key"},
  41.     {offsetof(rolo_t, rl_addr[0][0]), sizeofm(rolo_t, rl_addr),    t_string,
  42.                                                                     0, ""},
  43.     {offsetof(rolo_t, rl_phone[0]),   sizeofm(rolo_t, rl_phone),   t_string,
  44.                                                                     0, ""},
  45.     {offsetof(rolo_t, rl_fax[0]),     sizeofm(rolo_t, rl_fax),     t_string,
  46.                                                                     0, ""},
  47.     {offsetof(rolo_t, rl_notes[0][0]),sizeofm(rolo_t, rl_notes),   t_string,
  48.                                                                     0, ""}
  49. };
  50.  
  51. #endif    /* #ifdef ROLO_H */
  52.