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

U_DRAFT UFILE* U_EXPORT2 u_fadopt ( FILE *  f,
const char *  locale,
const char *  codepage 

Open a UFILE on top of an existing FILE* stream. The FILE* stream ownership is transferred to the new UFILE. It will be closed when the UFILE is closed.

f The FILE* which this UFILE will take ownership of.
locale The locale whose conventions will be used to format and parse output. If this parameter is NULL, the default locale will be used.
codepage The codepage in which data will be written to and read from the file. If this paramter is NULL, data will be written and read using the default codepage for locale, unless locale is NULL, in which case the system default codepage will be used.
A new UFILE, or NULL if an error occurred. If an error occurs the ownership of the FILE* stream remains with the caller. ICU 4.4

Definition at line 123 of file ufile.c.

References TRUE.

    return finit_owner(f, locale, codepage, TRUE);

Generated by  Doxygen 1.6.0   Back to index