Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE void U_EXPORT2 u_fclose ( UFILE file)

Close a UFILE. Implies u_fflush first.

Parameters:
fileThe UFILE to close. ICU 3.0
See also:
u_fflush

Definition at line 230 of file ufile.c.

{
    if (file) {
        u_fflush(file);
        ufile_close_translit(file);

        if(file->fOwnFile)
            fclose(file->fFile);

#if !UCONFIG_NO_FORMATTING
        u_locbund_close(&file->str.fBundle);
#endif

        ucnv_close(file->fConverter);
        uprv_free(file);
    }
}

Generated by  Doxygen 1.6.0   Back to index