third_party/inchi/INCHI_BASE/src/ichinorm.c
int UnMarkDisconnectedComponents( ORIG_ATOM_DATA *orig_inp_data )
{
    int i;

    for (i = 0; i < orig_inp_data->num_inp_atoms; i++)
    {
        orig_inp_data->at[i].orig_compt_at_numb = 0;
        orig_inp_data->at[i].component = 0;
    }

    if (orig_inp_data->nCurAtLen)
    {
        inchi_free( orig_inp_data->nCurAtLen );
        orig_inp_data->nCurAtLen = NULL;
    }

    if (orig_inp_data->nOldCompNumber)
    {
        inchi_free( orig_inp_data->nOldCompNumber );
        orig_inp_data->nOldCompNumber = NULL;
    }

    orig_inp_data->num_components = 0;

    return 0;
}
/****************************************************************************
Clear the (disconnected) components info in  ORIG_ATOM_DATA
****************************************************************************/
Clear the (disconnected) components info in  ORIG_ATOM_DATA
Clear the ( disconnected ) components info in ORIG_ATOM_DATA
int UnMarkDisconnectedComponents( ORIG_ATOM_DATA *orig_inp_data )
{
    int i;
    for (i = 0; i < orig_inp_data->num_inp_atoms; i++)
    {
        orig_inp_data->at[i].orig_compt_at_numb = 0;
        orig_inp_data->at[i].component = 0;
    }
    if (orig_inp_data->nCurAtLen)
    {
        inchi_free( orig_inp_data->nCurAtLen );
        orig_inp_data->nCurAtLen = NULL;
    }
    if (orig_inp_data->nOldCompNumber)
    {
        inchi_free( orig_inp_data->nOldCompNumber );
        orig_inp_data->nOldCompNumber = NULL;
    }
    orig_inp_data->num_components = 0;
    return 0;
}
int UnMarkDisconnectedComponents ( ORIG_ATOM_DATA * orig_inp_data ) { int i ; for ( i = 0 ; i < orig_inp_data -> num_inp_atoms ; i ++ ) { orig_inp_data -> at [ i ] . orig_compt_at_numb = 0 ; orig_inp_data -> at [ i ] . component = 0 ; } if ( orig_inp_data -> nCurAtLen ) { inchi_free ( orig_inp_data -> nCurAtLen ) ; orig_inp_data -> nCurAtLen = NULL ; } if ( orig_inp_data -> nOldCompNumber ) { inchi_free ( orig_inp_data -> nOldCompNumber ) ; orig_inp_data -> nOldCompNumber = NULL ; } orig_inp_data -> num_components = 0 ; return 0 ; }
Clear the (disconnected) components info in  ORIG_ATOM_DATA
Clear the ( disconnected ) components info in ORIG_ATOM_DATA