Details

[Home]

Issue of the Standard # S0687

Brief

Incorrect description of tgetflag return value

Detailed Description

The LSB standard refers X/Open Curses, Issue 4, Version 2, when specifies the tgetflag interface, which reads as follows:

SYNOPSIS
  #include 
  ...
  int tgetflag(char id[2]);
  int tgetnum(char id[2]);

RETURN VALUE
  Upon successful completion, functions that return an integer return OK.
  Otherwise, they return ERR.
But actually the tgetflag() returns "the boolean entry for id, or zero if it is not available".

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 14. Utility Libraries, 14.6. Data Definitions for libncurses, tgetflag() function.

[Home]