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

Purpose:    rename a database

Prototype:  int irename_db(char *old_db_name, char *new_db_name);

Header:     isam.h

Inputs:     old_db_name - name of original database
            new_db_name - new name for database

Description:
        irename_db renames the old database named old_db_name to the
        new database name new_db_name.  Both the data file and its
        associated index file are renamed.  If there is a problem renaming
        either of the files, the old database name is restored.  It is an
        error if you call irename_db to rename a database that is open, or
        choose a new name that is the same as an existing database.

        The names may include a drive specifier and/or a pathname.  Any given
        extension is ignored, since the extensions for the file names are
        built-in to ISAM.

Returns:
        OK or ERROR

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