The ff_uni2oem function converts a Unicode character into OEM character.
WCHAR ff_uni2oem ( DWORD uni, /* [IN] Unicode character */ WORD cp /* [IN] Code page */ );
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.
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.