kgetent
, kgetnum
,
kgetflag
, kgetstr
—
?????????åץǡ????١????ؤΥ????????롼??????
int kgetent
(char
*bp, char *name) int
kgetnum
(char *id)
int
kgetflag
(char *id)
char *
kgetstr
(char *id,
char **area)
???????δؿ??ϡ??????ܡ??ɥ????ѥӥ??ƥ??ǡ????١??????̾???
/usr/share/misc/keycap.pcvt
???饱???ѥӥ??ƥ????????Ф??ƻ??Ѥ??ޤ???
?ǡ????١????? ?ե????ޥåȤ?
keycap(5)
???????????Ƥ??ޤ???
kgetent
() ?ؿ??ϡ?
bp ?ΥХåե???
name
?Υ????ܡ??ɥޥåԥ?
?????ȥ???Ÿ?????ޤ??? ???? bp
?ϥ??????? 1024
?Υ????饯???Хåե??Ǥ????٤??ǡ?
kgetnum
(), kgetflag
(),
kgetstr
()
?ؤΤ??θ??Τ??٤ƤθƤӽФ????̤???
?ݻ??????ʤ????Фʤ??ޤ?????
kgetent
()
?ؿ??ϡ??????ץ??Ǥ???
keycap
?ǡ????١????ե????뤬???Ĥ??ʤ????? -1
???֤???
?????Υޥå?̾?˥????ȥ꤬?ʤ?????
0 ???֤??? ???Ƥ????ェλ?????? 1
???֤??ޤ???
kgetnum
()
?ؿ??ϥ????ѥӥ??ƥ? id
???Ф??????ͤ????ޤ???
?ޥåפ???Ϳ???????ʤ????? -1
???֤??ޤ???
kgetflag
()
?ؿ??ϡ??????Υ????ѥӥ??ƥ????ޥåפΥ????ȥ???¸?ߤ?????
1 ???ᤷ?? ¸?ߤ??ʤ????? 0
???ᤷ?ޤ???
kgetstr
()
?ؿ??ϥ????ѥӥ??ƥ? id
???Ф???ʸ?????? area
?ˤ??äƼ????줿?Хåե??˥??ԡ????????Υݥ????֤??ޤ???
?????? area
?ݥ???ʸ?????θ????ޤǿʤ??ޤ???
kgetstr
()
?ؿ??ϡ??????ѥӥ??ƥ??????Ĥ????ʤ?????
NULL
???֤??ޤ???
- /usr/share/misc/keycap.pcvt
- ?????ܡ??ɥ????ѥӥ??ƥ??ǡ????١???
(?ʤ????Х??ȡ????????????ޤ?)