home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cuj9301.zip / 1101092A < prev    next >
Text File  |  1992-11-10  |  300b  |  22 lines

  1. #include "isam.h"
  2.  
  3. int orphan (char *rec);
  4.  
  5. static Isam i ("invoice");
  6.  
  7. void main(void)
  8. {
  9.     Isam l ("lineitem");
  10.  
  11.     i.reindex (rel_func NULL);
  12.     l.reindex (orphan);
  13. }
  14.  
  15. int orphan (char *rec)
  16. {
  17.     char inv_num[10];
  18.     strnncpy(inv_num, rec + 7, 9);
  19.     return (i.read(inv_num)) ? 0 : 1;
  20. }
  21.  
  22.