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 >
Wrap
Text File
|
1992-11-10
|
300b
|
22 lines
#include "isam.h"
int orphan (char *rec);
static Isam i ("invoice");
void main(void)
{
Isam l ("lineitem");
i.reindex (rel_func NULL);
l.reindex (orphan);
}
int orphan (char *rec)
{
char inv_num[10];
strnncpy(inv_num, rec + 7, 9);
return (i.read(inv_num)) ? 0 : 1;
}