home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 170_01 / isam.h < prev    next >
Text File  |  1979-12-31  |  1KB  |  43 lines

  1. /*
  2. **                  ISAMC - Written by John M. Dashner
  3. */
  4.  
  5. /*
  6. **                  ISAMC - Header File
  7. */
  8.  
  9. struct isam
  10. {
  11.     int q1;     /* number of records */
  12.     int q2;     /* number of deleted records */
  13.     int q3;     /* number of records in the sorted portion */
  14.     int q4;     /* current record number */
  15.     int q5;     /* 0 == sorted; 1 == unsorted */
  16.     int q6;     /* key length */
  17.     int q7;     /* file pointer */
  18. };
  19.  
  20. struct rec1
  21. {
  22.     int ttl_recs;       /* total recs */
  23.     int del_recs;       /* deleted recs */
  24. };
  25.  
  26. struct rec2
  27. {
  28.     int srt_recs;       /* sorted portion */
  29.     unsigned del_ptr;   /* points to delete chain */
  30. };
  31.  
  32. struct rec3
  33. {
  34.     unsigned rec_ptr;   /* data record ptr */
  35.     char  idx_key[1];   /* record key */
  36. };
  37.  
  38. #define MINKEY 2
  39. #define MAXKEY 254
  40.  
  41. extern int isam_err;    /* ISAMC error indicator */
  42.  
  43.