third_party/inchi/INCHI_BASE/src/ichi_io.c
int inchi_fprintf( FILE* f, const char* lpszFormat, ... )
{
    int ret = 0, ret2 = 0;
    va_list argList;
    if (f)
    {
        my_va_start( argList, lpszFormat );
        ret = inchi_vfprintf( f, lpszFormat, argList );
        va_end( argList );
        /*  No output to stderr from within dll or GUI program */
#if ( !defined(TARGET_API_LIB) && !defined(TARGET_LIB_FOR_WINCHI) )
        if (f != stderr)
        {
            my_va_start( argList, lpszFormat );
            ret2 = vfprintf( stderr, lpszFormat, argList );
            va_end( argList );
        }
#endif
        return ret ? ret : ret2;
    }

    return 0;
}
/****************************************************************************
 Print to file, echoing to stderr
****************************************************************************/
Print to file, echoing to stderr
Print to file echoing to stderr
int inchi_fprintf( FILE* f, const char* lpszFormat, ... )
{
    int ret = 0, ret2 = 0;
    va_list argList;
    if (f)
    {
        my_va_start( argList, lpszFormat );
        ret = inchi_vfprintf( f, lpszFormat, argList );
        va_end( argList );
#if ( !defined(TARGET_API_LIB) && !defined(TARGET_LIB_FOR_WINCHI) )
        if (f != stderr)
        {
            my_va_start( argList, lpszFormat );
            ret2 = vfprintf( stderr, lpszFormat, argList );
            va_end( argList );
        }
#endif
        return ret ? ret : ret2;
    }
    return 0;
}
int inchi_fprintf ( FILE * f , const char * lpszFormat , ... ) { int ret = 0 , ret2 = 0 ; va_list argList ; if ( f ) { my_va_start ( argList , lpszFormat ) ; ret = inchi_vfprintf ( f , lpszFormat , argList ) ; va_end ( argList ) ; #if ( ! defined ( TARGET_API_LIB ) && ! defined ( TARGET_LIB_FOR_WINCHI ) ) if ( f != stderr ) { my_va_start ( argList , lpszFormat ) ; ret2 = vfprintf ( stderr , lpszFormat , argList ) ; va_end ( argList ) ; } #endif return ret ? ret : ret2 ; } return 0 ; }
Print to file, echoing to stderr
Print to file echoing to stderr
/*  No output to stderr from within dll or GUI program */