コード例 #1
0
ファイル: fflush.c プロジェクト: Zeke-OS/zeke
int fflush(FILE * stream)
{
    int res;

    if (stream) {
        _PDCLIB_flockfile(stream);
        res = _PDCLIB_fflush_unlocked(stream);
        _PDCLIB_funlockfile(stream);
    } else {
        res = _PDCLIB_fflush_unlocked(NULL);
    }

    return res;
}
コード例 #2
0
ファイル: fflush.c プロジェクト: Bigcheese/nucleo-toolchain
int fflush( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int res = _PDCLIB_fflush_unlocked(stream);
    _PDCLIB_funlockfile( stream );
    return res;
}