Programming Guide |
Initializes a key translation table
#include <keyfile.h>int sm_keyinit(char *key_address);int sm_n_keyinit(char *key_file);
key_address
- The address of a key translation table created with key2bin and bin2c; required to install a memory-resident key translation file.
key_file
- The name of the key translation file to use to initialize the table.
- 0 Success. Otherwise, Panther aborts program execution and returns to the operating system.
sm_keyinit
is called by sm_initcrt during initialization. You can also call it from an application program, either before or aftersm_initcrt
, to install a memory-resident key translation file.If
sm_keyinit
fails, you can generate error messages through sm_inimsg. This function creates formatted output that you can display through other library functions like sm_fqui_msg.