third_party/inchi/INCHI_BASE/src/mol_fmt3.c
char* inchi_fgetsLf_V3000( char* line, INCHI_IOSTREAM* inp_stream )
{
    char *p = NULL;
    int len = 0;

    p = inchi_fgetsLf( line, MOL_FMT_V3000_INPLINELEN, inp_stream );
    if (!p)
    {
        return NULL;
    }

    len = (int) strlen( p );
    if (len < 7)
    {
        return NULL;
    }

    if (strncmp( p, "M  V30 ", 7 ))
    {
        return NULL;
    }

    p += 7;
    len = normalize_string( p );

    return  p;
}
/****************************************************************************
    Extended version of inchi_fgetsLf which is able of reading
    concatenated lines (ending with '-') of V3000 Molfile.
    Also removes "M  V30 " prefix" and normalizes the rest of string
****************************************************************************/
Extended version of inchi_fgetsLf which is able of reading
concatenated lines (ending with '-') of V3000 Molfile.
Also removes "M  V30 " prefix" and normalizes the rest of string
Extended version of inchi_fgetsLf which is able of reading concatenated lines ( ending with ' - ' ) of V3000 Molfile . Also removes " M V30 " prefix " and normalizes the rest of string
char* inchi_fgetsLf_V3000( char* line, INCHI_IOSTREAM* inp_stream )
{
    char *p = NULL;
    int len = 0;
    p = inchi_fgetsLf( line, MOL_FMT_V3000_INPLINELEN, inp_stream );
    if (!p)
    {
        return NULL;
    }
    len = (int) strlen( p );
    if (len < 7)
    {
        return NULL;
    }
    if (strncmp( p, "M  V30 ", 7 ))
    {
        return NULL;
    }
    p += 7;
    len = normalize_string( p );
    return  p;
}
char * inchi_fgetsLf_V3000 ( char * line , INCHI_IOSTREAM * inp_stream ) { char * p = NULL ; int len = 0 ; p = inchi_fgetsLf ( line , MOL_FMT_V3000_INPLINELEN , inp_stream ) ; if ( ! p ) { return NULL ; } len = ( int ) strlen ( p ) ; if ( len < 7 ) { return NULL ; } if ( strncmp ( p , " " , 7 ) ) { return NULL ; } p += 7 ; len = normalize_string ( p ) ; return p ; }
Extended version of inchi_fgetsLf which is able of reading
concatenated lines (ending with '-') of V3000 Molfile.
Extended version of inchi_fgetsLf which is able of reading concatenated lines ( ending with ' - ' ) of V3000 Molfile .