third_party/inchi/INCHI_BASE/src/ichi_io.c
int inchi_ios_flush_not_displayed( INCHI_IOSTREAM * ios )
{
    char *obuf = NULL;
    int ret;

    if (!ios)
    {
        return -1;
    }

    obuf = (char *) inchi_calloc( ios->s.nUsedLength + 1, sizeof( char ) );

    if (!obuf)
    {
        return -1;
    }

    strcpy( obuf, ios->s.pStr );
    ios->s.nUsedLength = 0;
    ret = inchi_ios_print( ios, "%s", obuf );
    inchi_free( obuf );

    return ret;
}
/****************************************************************************
    This function's flushes previously hidden output and resets string stream
    returns n chars on success, otherwise -1
****************************************************************************/
This function's flushes previously hidden output and resets string stream
returns n chars on success, otherwise -1
This function ' s flushes previously hidden output and resets string stream returns n chars on success otherwise - 1
int inchi_ios_flush_not_displayed( INCHI_IOSTREAM * ios )
{
    char *obuf = NULL;
    int ret;
    if (!ios)
    {
        return -1;
    }
    obuf = (char *) inchi_calloc( ios->s.nUsedLength + 1, sizeof( char ) );
    if (!obuf)
    {
        return -1;
    }
    strcpy( obuf, ios->s.pStr );
    ios->s.nUsedLength = 0;
    ret = inchi_ios_print( ios, "%s", obuf );
    inchi_free( obuf );
    return ret;
}
int inchi_ios_flush_not_displayed ( INCHI_IOSTREAM * ios ) { char * obuf = NULL ; int ret ; if ( ! ios ) { return -1 ; } obuf = ( char * ) inchi_calloc ( ios -> s . nUsedLength + 1 , sizeof ( char ) ) ; if ( ! obuf ) { return -1 ; } strcpy ( obuf , ios -> s . pStr ) ; ios -> s . nUsedLength = 0 ; ret = inchi_ios_print ( ios , " " , obuf ) ; inchi_free ( obuf ) ; return ret ; }
This function's flushes previously hidden output and resets string stream
returns n chars on success, otherwise -1
This function ' s flushes previously hidden output and resets string stream returns n chars on success otherwise - 1