
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
101/226
DRAW.NO.
size: Number of bytes of a specified character string
When calculating the number of bytes, remember that one
character consists of two bytes. The maximum allowable number
of bytes is 200.
Output
---
[Return]
0: Normal completion.
2: The "size" is invalid.
5: The "attr" or "*str" is invalid.
[Description]
This function displays two-byte characters such as kanji, hiragana, and
special characters.
[Related Function]
putchar(), puts(), printf(), Escape sequence
[Example]
/* Example of displaying the ASCII characters 'A' and the two-byte character 'A' */
/* ASCII character 'A' = 0x41 */
/* 2bytes character 'A' = 0x82, 0x60 */
#include <pmclib.h>
short ret;
/* Using character array */
char strc[] = {0x41, 0x00, 0x82, 0x60, 0x00, 0x00};
ret = pl_dspstrw(0x18, (short *)strc, sizeof(strc));
if (ret != 0)
{
/* error handling */
}