Programming Guide



sm_key_integer

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.

Returns

Description

sm_key_integer returns the integer value of a Panther logical key constant. Panther gets this value from smkeys.h. This function is useful when a function needs a key's integer value but cannot access the include files.

Example

/* Get the integer value of the New Line/Enter key */
int key;
key = sm_key_integer("NL");

See Also

sm_keylabel