third_party/inchi/INCHI_BASE/src/ichi_io.c
void inchi_ios_reset( INCHI_IOSTREAM* ios )
{
    ios->s.pStr = NULL;
    ios->s.nUsedLength = ios->s.nAllocatedLength = ios->s.nPtr = 0;
    if (NULL != ios->f && stdout != ios->f && stderr != ios->f && stdin != ios->f)
    {
        fclose( ios->f );
    }

    return;
}
/****************************************************************************
    Reset INCHI_IOSTREAM: set string buffer ptr to NULL
    (but do _not_ free memory)and close associated file.
****************************************************************************/
Reset INCHI_IOSTREAM: set string buffer ptr to NULL
(but do _not_ free memory)and close associated file.
Reset INCHI_IOSTREAM : set string buffer ptr to NULL ( but do _not_ free memory ) and close associated file .
void inchi_ios_reset( INCHI_IOSTREAM* ios )
{
    ios->s.pStr = NULL;
    ios->s.nUsedLength = ios->s.nAllocatedLength = ios->s.nPtr = 0;
    if (NULL != ios->f && stdout != ios->f && stderr != ios->f && stdin != ios->f)
    {
        fclose( ios->f );
    }
    return;
}
void inchi_ios_reset ( INCHI_IOSTREAM * ios ) { ios -> s . pStr = NULL ; ios -> s . nUsedLength = ios -> s . nAllocatedLength = ios -> s . nPtr = 0 ; if ( NULL != ios -> f && stdout != ios -> f && stderr != ios -> f && stdin != ios -> f ) { fclose ( ios -> f ) ; } return ; }
Reset INCHI_IOSTREAM: set string buffer ptr to NULL
(but do _not_ free memory)and close associated file.
Reset INCHI_IOSTREAM : set string buffer ptr to NULL ( but do _not_ free memory ) and close associated file .