Returns the label name for a specified soft label.
Curses Library (libcurses.a)
#include <curses.h>
char *slk_label( LabNum)
int LabNum;
The slk_label subroutine returns the label name for a specified soft function-key label. These labels appear at the bottom of the screen and give applications, such as editors, a more user-friendly look. The slk_label subroutine returns the name in the format it was in when passed to the slk_set subroutine. If the name was justified by the slk_set subroutine, the justification is removed.
Item | Description |
---|---|
LabNum | Specifies the label number. This parameter must be in the range 1 to 8. |
To obtain the label name for soft label 3, use:
char *label_name;
label_name = slk_label(3);
Item | Description |
---|---|
NULL | Indicates a label number that is not valid or a label number not set with the slk_set subroutine. |
OK | Indicates that the label name was successfully retrieved. |