# mco_current_registry_size
RT

> Return the number of bytes required to load the database registry.

### Prototype

        unsigned int mco_current_registry_size( void );

### Arguments

void | No arguments

### Description

> This function returns the number of bytes required to load the database registry at runtime.

### Return Codes

unsigned int | The current registry size n bytes

### Example

        Application snippet:

        const char * dbname = "SimpleDb";

        int main(int argc, char* argv[])
        {
            mco_db_h db;
            MCO_RET rc;
            mco_device_t       dev;
            mco_db_params_t    db_params;
            unsigned int reg_size;
            ...

            if( (rc = mco_runtime_start()) != MCO_S_OK)
                exit(-1);

            reg_size = mco_current_registry_size();

            rc = mco_db_open_dev( dbname, simpledb_get_dictionary(), &dev, 1, &db_params );
            if ( MCO_S_OK != rc )
            {
                rc = mco_db_connect(  dbname, &db );
                ...
            }
        }

### Files

Header file:
mco.h
Source file:
mcortmt.c
Library:
libmcolib.a