Details

[Home]

Issue of the Standard # S0686

Brief

Incorrect description of tgetnum return value

Detailed Description

The LSB standard refers X/Open Curses, Issue 4, Version 2, when specifies the tgetnum 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 tgetnum() returns "the numeric entry for id, or -1 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, tgetnum() function.

[Home]