Cp_Char And Pegchar - Casio ClassPad 300 Programming Manual

Sdk programming guide
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

Each character also has a bold representation.
Let's walk through the creation of the multi-byte character . Looking at the character
charts, you'll see that
has display code 0xEE and it's second byte is 0x6E (refer to the
chart immediately above). To create this character the code would look like this:
CP_CHAR multi[3]={0xEE,0x6E,0};
Notice that this array is null terminated.

CP_CHAR and PEGCHAR

While using the ClassPad, you may notice that some string functions expect PEGCHAR
whereas others expect CP_CHAR. PEGCHAR is defined as:
typedef char PEGCHAR;
Whereas CP_CHAR is defined as:
#define
CP_CHAR unsigned char
In general, these are two things that mean the same thing. If you have a CP_CHAR that
needs to be a PEGCHAR (or vice versa), just cast it to the correct type. Because these
97

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents