Syntax
const char *FkLabel( int key );
Arguments
key Function key number from 1 through FkMax().
Return value
A label such as F1 or F40, or an empty string for an out-of-range number.
Description
Convert a function-key number to a label for a prompt or shortcut legend. Pass the ordinal number, such as `5` for `F5`. To retain a generated label, copy it before the next call that formats one into the shared buffer.
Example
#include "xdev-wtui.h"
#include <stdio.h>
int main( void )
{
printf( "%s opens help.\n", FkLabel( 1 ) );
return 0;
}