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

Purpose:    return list of field names in database

Prototype:  char **igetfldnames(Db_Obj *db);

Header:     isam.h

Inputs:     db  - database handle

Description:
        igetfldnames returns a pointer to the record format for the
        database db.  The record format is a list of the field names,
        in order, that make up one record.  The record pointer points to
        a READ-ONLY array of character strings, where each character string
        is the name of one filed in the record.  The field names are in the
        order that they appear in the record.  The last element in the array
        is a NULL pointer.

        You can call igetfldcount to determine the number of fields.  You
        can call showfldnames to print the record format to stdout.

Returns:
        Returns pointer to a READ-ONLY array of field names, or NULL for error.

WARNING:
        Do not write over the field names, or dire things will happen.

See Also: igetfldcount showfldnames

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