ff_uni2oem

The ff_uni2oem function converts a Unicode character into OEM character.

WCHAR ff_uni2oem (
  DWORD uni,           /* [IN] Unicode character */
  WORD cp              /* [IN] Code page */
);

Parameters

uni
A Unicode character in UTF-16 encoding to be converted into OEM code. For the characters out of BMP, high-word is high-surrogate and low word is low-surrogate.
cp
Code page of output character. If FF_CODE_PAGE specifies a code page, only this code page can be specified. If it specifies all code page, any supported code page can be specified.

Return Value

The function returns an OEM character converted from input Unicode character. If the Unicode character has no mapping to the OEM character in specified code page, a null character is returned.

QuickInfo

This function is provided in ffunicode.c and required when FF_USE_LFN != 0. It is intended to be used by FatFs but also application program may use this function.

Return