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>showdb</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Name:       showdb

Purpose:    dump all data records, in index order, to stdout

Prototype:  int showdb(Db_Obj    *db,
                       Index_Obj *index,
                       char      *separator);

Header:     isam.h

Inputs:     db          - database handle
            index       - index handle
            separator   - field separator string or NULL for new line

Description:
        showdb dumps each record from the database db in the order
        specified by the index to stdout.  If index is NULL, the
        records are dumped in Physical Index order.  This function is used
        mainly for debugging your application program.

        The records are printed one per line with the string separator
        separating the fields.  If the separator is NULL, each field
        begins a new line.  Note that separator is a string (character
        array), not just a single character.

        showdb uses the mark facility to mark the current place in the
        database, then restores it after the dump.  The means that the
        existing mark in the index, if any, is moved to the current record.

Returns:
        Returns OK and prints to stdout, or ERROR

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