Converts Unicode to CP1252 character code.

Syntax

char *CONV_UnicodeToCP1252(
  unsigned short unicode
);

Parameters

unicode
[in] Unicode

Return value

If the conversion is successful, it returns a pointer to the buffer containing the character code of CP1252, otherwise NULL.

Remarks

Convert the Unicode specified by unicode to the character code of CP1252 and store it in the first byte of the 2-byte buffer, set NUL in the second byte, and return a pointer to this buffer.
2-byte buffer:
+0 character code of CP1252
+1 NUL

If the character code of CP1252 corresponding to the specified Unicode does not exist, NULL is returned.

Requirements

Header file:
CP1252.h
Library file:
libCP1252.a
libCodeConversion.a
libSTARTUPOPH5000.a


Last updated: 2022/04/08