These functions extract and use capabilities from a keyboard capability data
the format of which is described in
extracts the entry for keyboard mapping
into the buffer at
should be a character buffer of size
1024 and must be retained through all subsequent calls to
returns -1 if none of the
data base files could be opened,
0 if the map name given does not have an entry,
and 1 if all goes well.
gets the numeric value of capability
returning -1 if is not given for the map.
returns 1 if the specified capability is present in
the maps entry, 0 if it is not.
returns the string value of the capability
places it in the buffer at
and advances the
if the capability was not found.