third_party/inchi/INCHI_BASE/src/ichiread.c
int ParseAuxSegmentSp3InvNumbers( const char *str,
                                  int        bMobileH,
                                  INChI      *pInpInChI[],
                                  int        ppnNumComponents[],
                                  int        state )
{
    switch (state)
    {
        case AST_MOBILE_H_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_YES)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_MOBILE_H_ISO_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_YES)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_FIXED_H_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_NON)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_FIXED_H_ISO_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_NON)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        default:
            return RI_ERR_PROGR;
    }

    return 1;
}
/****************************************************************************
Read and skip AuxInfo atom numbers in "/iN:"segment,
for sp3 inv sub-layer at specific reading state
****************************************************************************/
Read and skip AuxInfo atom numbers in "/iN:"segment,
for sp3 inv sub-layer at specific reading state
Read and skip AuxInfo atom numbers in " / iN : " segment for sp3 inv sub - layer at specific reading state
int ParseAuxSegmentSp3InvNumbers( const char *str,
                                  int        bMobileH,
                                  INChI      *pInpInChI[],
                                  int        ppnNumComponents[],
                                  int        state )
{
    switch (state)
    {
        case AST_MOBILE_H_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_YES)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_MOBILE_H_ISO_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_YES)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_FIXED_H_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_NON)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        case AST_FIXED_H_ISO_SP3_INV_NUMBERS:
            if (bMobileH != TAUT_NON)
            {
                return RI_ERR_PROGR;
            }
            if (memcmp( str, "iN:", 3 ))
            {
                return 0;
            }
            break;
        default:
            return RI_ERR_PROGR;
    }
    return 1;
}
int ParseAuxSegmentSp3InvNumbers ( const char * str , int bMobileH , INChI * pInpInChI [ ] , int ppnNumComponents [ ] , int state ) { switch ( state ) { case AST_MOBILE_H_SP3_INV_NUMBERS : if ( bMobileH != TAUT_YES ) { return RI_ERR_PROGR ; } if ( memcmp ( str , " " , 3 ) ) { return 0 ; } break ; case AST_MOBILE_H_ISO_SP3_INV_NUMBERS : if ( bMobileH != TAUT_YES ) { return RI_ERR_PROGR ; } if ( memcmp ( str , " " , 3 ) ) { return 0 ; } break ; case AST_FIXED_H_SP3_INV_NUMBERS : if ( bMobileH != TAUT_NON ) { return RI_ERR_PROGR ; } if ( memcmp ( str , " " , 3 ) ) { return 0 ; } break ; case AST_FIXED_H_ISO_SP3_INV_NUMBERS : if ( bMobileH != TAUT_NON ) { return RI_ERR_PROGR ; } if ( memcmp ( str , " " , 3 ) ) { return 0 ; } break ; default : return RI_ERR_PROGR ; } return 1 ; }
Read and skip AuxInfo atom numbers in "/iN:"segment,
for sp3 inv sub-layer at specific reading state
Read and skip AuxInfo atom numbers in " / iN : " segment for sp3 inv sub - layer at specific reading state