Programming Guide |
Gets the integer value of a logical key mnemonic
#include <smkeys.h>int sm_key_integer(char *key);
key
- A logical key constant defined in
smkeys.h
. For a complete list of Panther logical keys, refer to Table 6-1 in Configuration Guide.
- 1 The integer value of the logical key mnemonic.
sm_key_integer
returns the integer value of a Panther logical key constant. Panther gets this value fromsmkeys.h
. This function is useful when a function needs a key's integer value but cannot access the include files.
/* Get the integer value of the New Line/Enter key */
int key;
key = sm_key_integer("NL");