mco_calc_deinit

Release the calculator resources.

Prototype

 
    void	mco_calc_deinit(	/*OUT*/ mco_calc_t * calc );
 

Arguments

calc A handle to the initialized calculator object

Description

This function releases the calculator resources. It must be called before disconnecting from the database.

Return Codes

void No value returned.

Example

 
    Application snippet:
        
     
    const char * dbname = "calc_db";
     
    int main(int argc, char* argv[])
    {
        MCO_RET            rc;
        mco_device_t       dev;
        mco_calc_t calc;
        mco_db_params_t    db_params;
         
        mco_runtime_start();
        ...
        mco_calc_init(&calc, calc_db_get_dictionary());
        ...
        /* NOTE: calculator *must* be deinitialized before you disconnect from the database */
        mco_calc_deinit(&calc);
        
         
        mco_db_disconnect(calc.db);
    }
         

For further implementation details see SDK sample "samples/native/core/17-statistics/dbcalc".

Related Topics Link IconRelated Topics

Files

Header file:
mcodbcalc.h
Source file:
mcodbcalc.c
Library:
libmcodbcalc.a