third_party/inchi/INCHI_BASE/src/ichiprt2.c
int MakeCtString( CANON_GLOBALS    *pCG,
                  AT_NUMB          *LinearCT,
                  int              nLenCT,
                  int              bAddDelim,
                  S_CHAR           *nNum_H,
                  int              num_atoms,
                  INCHI_IOS_STRING *strbuf,
                  int              nCtMode,
                  int              *bOverflow )
{

    if (!nNum_H || !( nCtMode & CT_MODE_NO_ORPHANS ))
    {
        return MakeCtStringOld( LinearCT, nLenCT, bAddDelim, strbuf, nCtMode, bOverflow );
    }
    else
    {
        return MakeCtStringNew( pCG, LinearCT, nLenCT, bAddDelim, nNum_H,
                                num_atoms, strbuf, nCtMode, bOverflow );
    }
}
/****************************************************************************
    Prepare InChI atomic numbers substring

    nCtMode =    0: full
                1: censored CT (no orphans, that CT should
                   have only atoms with neighbors)
                2: compressed CT (Abc numbers)
 ****************************************************************************/
Prepare InChI atomic numbers substring
nCtMode =    0: full
1: censored CT (no orphans, that CT should
have only atoms with neighbors)
2: compressed CT (Abc numbers)
Prepare InChI atomic numbers substring nCtMode = 0 : full 1 : censored CT ( no orphans that CT should have only atoms with neighbors ) 2 : compressed CT ( Abc numbers )
int MakeCtString( CANON_GLOBALS    *pCG,
                  AT_NUMB          *LinearCT,
                  int              nLenCT,
                  int              bAddDelim,
                  S_CHAR           *nNum_H,
                  int              num_atoms,
                  INCHI_IOS_STRING *strbuf,
                  int              nCtMode,
                  int              *bOverflow )
{
    if (!nNum_H || !( nCtMode & CT_MODE_NO_ORPHANS ))
    {
        return MakeCtStringOld( LinearCT, nLenCT, bAddDelim, strbuf, nCtMode, bOverflow );
    }
    else
    {
        return MakeCtStringNew( pCG, LinearCT, nLenCT, bAddDelim, nNum_H,
                                num_atoms, strbuf, nCtMode, bOverflow );
    }
}
int MakeCtString ( CANON_GLOBALS * pCG , AT_NUMB * LinearCT , int nLenCT , int bAddDelim , S_CHAR * nNum_H , int num_atoms , INCHI_IOS_STRING * strbuf , int nCtMode , int * bOverflow ) { if ( ! nNum_H || ! ( nCtMode & CT_MODE_NO_ORPHANS ) ) { return MakeCtStringOld ( LinearCT , nLenCT , bAddDelim , strbuf , nCtMode , bOverflow ) ; } else { return MakeCtStringNew ( pCG , LinearCT , nLenCT , bAddDelim , nNum_H , num_atoms , strbuf , nCtMode , bOverflow ) ; } }
Prepare InChI atomic numbers substring
nCtMode =    0: full
1: censored CT (no orphans, that CT should
have only atoms with neighbors)
2: compressed CT (Abc numbers)
Prepare InChI atomic numbers substring nCtMode = 0 : full 1 : censored CT ( no orphans that CT should have only atoms with neighbors ) 2 : compressed CT ( Abc numbers )