GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TERMKEY_KEYNAME2SYM(3) FreeBSD Library Functions Manual TERMKEY_KEYNAME2SYM(3)

termkey_keyname2sym - look up a symbolic key value for a string name

#include <termkey.h>

TermKeySym termkey_keyname2sym(TermKey *tk, const char *keyname);

Link with -ltermkey.

termkey_keyname2sym() looks up the symbolic key value represented by the given string name. This is a case-sensitive comparison. If the given name is not found, TERMKEY_SYM_UNKNOWN is returned instead. This function is the inverse of termkey_get_keyname(3), and is a more specific form of termkey_lookup_keyname(3) which only recognises names as complete strings.

Because the key names are stored in an array indexed by the symbol number, this function has to perform a linear search of the names. Use of this function should be restricted to converting key names into symbolic values during a program's initialisation, so that efficient comparisons can be done while it is running.

termkey_keyname2sym() returns a symbolic key constant, or TERMKEY_SYM_UNKNOWN.

termkey_get_keyname(3), termkey_lookup_keyname(3), termkey_strpkey(3), termkey(7)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.