home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_01
/
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;
}