This function translates a character to uppercase.

#define INCL_WINCOUNTRY /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB      hab;         /*  Anchor-block handle. */
ULONG    ulCodepage;  /*  Code page. */
ULONG    ulCountry;   /*  Country code. */
ULONG    ulInchar;    /*  Character to be translated to uppercase. */
ULONG    ulOutchar;   /*  Translated character. */

ulOutchar = WinUpperChar(hab, ulCodepage,
              ulCountry, ulInchar);


[Back] [Next]