Thread: Computeach-"isam.h" problems

  1. #1
    Registered User
    Join Date
    Jan 2002

    Unhappy Computeach-"isam.h" problems


    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.


    Foffo Spearjig

    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.
    Last edited by Foffo Spearjig; 07-01-2002 at 09:01 AM.
    'C that?... I felt nowt' - The Original Foffo Spearjig and his hard dog. The Tube TV show, sometime in the 80's

  2. #2
    Do you mean part num is 6 chars + null?

    The function returns a pointer to a structure which is defined on the last page of your program spec.
    Have you used the same structure and a pointer to it?

    I'm on the same course but I've just finished Prog 1 and have still to submit it.


  3. #3
    If you have the "isam.h" file and the customer and stock master files and want to send me them, I'll try and get it to work and send you the results.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM