ff_oem2uni

The ff_oem2uni function converts an OEM character into Unicode character.

WCHAR ff_oem2uni (
  WCHAR oem,           /* [IN] OEM character */
  WORD cp              /* [IN] Code page */
);

Parameters

oem
An OEM character to be converted into Unicode.
cp
Code page of input 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 a Unicode character in UTF-16 encoding converted from input OEM character. If the input character code in specified code page is invalid, 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