I'm having trouble with the isam.h header file supplied for the CIL C&G 424 project. Basically it appears not to work! The Part Number is passed to it OK, it appears to access the Index file OK, but can't find the relevant record from the Stckmast.dat. No errors are reported by isam and my code generates the relevant 'part not found' message. I've heard a rumour from a fellow student that isam.h is 'tricky', but a pre-written file supplied to us for a specific purpose should just work shouldn't it?
I think the problem possibly lies within the bsearch() function, but can't be sure at the moment, any hints, clues or half-baked ideas are welcome.
PS I've tried passing part num to search_file() as a 7-char string and as a pointer to the 7-char string. Neither works.