Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 747 -
Function reference
~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------------
3.1 Register user character. <Main>
------------------------------------------------------------------------------
[Name]
crt_reguserchar
[Syntax]
#include <crt.h>
int crt_reguserchar( unsigned int number, unsigned char *table ) ;
[Arguments]
number the number of registered user defined characters in
bytes ( 1-- 256)
table pointer to the character pattern table
[Return]
0 normal completion
1 invalid number of user defined characters
2 user defined character not supported by this version of CRT
module
[Description]
Register the character pattern of the user defined character.
After the execution of this function, user defined characters will
become available for the user application program.
Character pattern table must be statically allocated. Such kind of
usage that storing the character pattern table in the memory area
reserved by the malloc() function, specifying the table as an argument
of this function, and after that releasing the memory area by free()
function, is not allowed. The character pattern table should be
defined as, for example, usual constant data array. This is because
the character table is sometimes referred to again internally, when
re-registration of the character pattern become necessary inside the
library as a result of screen switching.
When 9 inch CRT is equipped, be sure to call this function in 40
columns x 16 line mode.