third_party/inchi/INCHI_BASE/src/runichi3.c
int OAD_Polymer_IsFirstAtomRankLower( int atom1, int atom2, OAD_AtProps *aprops )
{
    /* Compare ext-ranks */
    int result = OAD_Polymer_CompareRanksOfTwoAtoms( atom1, atom2, aprops );

    if (result)
    {
        return result;
    }

    /* Could not resolve who is junior by extended-ranks...             */
    /* As a last resort, simply check which canonical number is lesser  */
    if (atom1 < atom2)
    {
        return  1;
    }
    if (atom1 > atom2)
    {
        return -1;
    }

    /* should not reach there */
    return 0;
}
/****************************************************************************
 Compare seniority of two atoms in polymer SRU
 loosely following IUPAC guidelines.
 Always return non-zero result, that is, resolve the case.
****************************************************************************/
Compare seniority of two atoms in polymer SRU
loosely following IUPAC guidelines.
Always return non-zero result, that is, resolve the case.
Compare seniority of two atoms in polymer SRU loosely following IUPAC guidelines . Always return non - zero result that is resolve the case .
int OAD_Polymer_IsFirstAtomRankLower( int atom1, int atom2, OAD_AtProps *aprops )
{
    int result = OAD_Polymer_CompareRanksOfTwoAtoms( atom1, atom2, aprops );
    if (result)
    {
        return result;
    }
    if (atom1 < atom2)
    {
        return  1;
    }
    if (atom1 > atom2)
    {
        return -1;
    }
    return 0;
}
int OAD_Polymer_IsFirstAtomRankLower ( int atom1 , int atom2 , OAD_AtProps * aprops ) { int result = OAD_Polymer_CompareRanksOfTwoAtoms ( atom1 , atom2 , aprops ) ; if ( result ) { return result ; } if ( atom1 < atom2 ) { return 1 ; } if ( atom1 > atom2 ) { return -1 ; } return 0 ; }
Compare seniority of two atoms in polymer SRU
loosely following IUPAC guidelines.
Compare seniority of two atoms in polymer SRU loosely following IUPAC guidelines .
/* Compare ext-ranks */ /* Could not resolve who is junior by extended-ranks...             */ /* As a last resort, simply check which canonical number is lesser  */ /* should not reach there */