FreeBSD/sys/dev/kbd/kbd.c
/* get a pointer to the string associated with the given function key */
get a pointer to the string associated with the given function key
get a pointer to the string associated with the given function key
u_char
*genkbd_get_fkeystr(keyboard_t *kbd, int fkey, size_t *len)
{
	if (kbd == NULL)
		return (NULL);
	fkey -= F_FN;
	if (fkey > kbd->kb_fkeytab_size)
		return (NULL);
	*len = kbd->kb_fkeytab[fkey].len;
	return (kbd->kb_fkeytab[fkey].str);
}
u_char * genkbd_get_fkeystr ( keyboard_t * kbd , int fkey , size_t * len ) { if ( kbd == NULL ) return ( NULL ) ; fkey -= F_FN ; if ( fkey > kbd -> kb_fkeytab_size ) return ( NULL ) ; * len = kbd -> kb_fkeytab [ fkey ] . len ; return ( kbd -> kb_fkeytab [ fkey ] . str ) ; }
get a pointer to the string associated with the given function key
get a pointer to the string associated with the given function key