Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- C/Database Toolchest Library - name: <b>idelrec</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Name:       idelrec

Purpose:    delete the current record by index

Prototype:  int idelrec (Db_Obj *db, Index_Obj *index);

Header:     isam.h

Inputs:     db      - database handle
            index   - index handle

Description:
        idelrec deletes the current record of the index in the database
        named db.  All indexes, not just the named one, are updated to know
        that the record is deleted.

        The next record (or EOI, if there is no next record) becomes the new
        current record.  If the record happened to be the current record in
        any other index also, the current pointer for that index is moved to
        the next record (or EOI).

        If the deleted record happened to be the marked record for any index,
        the mark is moved to the next record (or EOI).

Returns:
        OK or ERROR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson