Computeach-"isam.h" problems

This is a discussion on Computeach-"isam.h" problems within the C Programming forums, part of the General Programming Boards category; Hi, I'm having trouble with the isam.h header file supplied for the CIL C&G 424 project. Basically it appears not ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    16

    Unhappy Computeach-"isam.h" problems

    Hi,

    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.

    Cheers,

    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
    Unregistered
    Guest
    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.

    Dav

  3. #3
    Unregistered
    Guest
    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.

    hobo.marmo@talk21.com

    Dav

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, 05:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 04:48 PM
  4. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 08:19 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 03:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21