Details

[Home]

Issue of the Standard # S0293

Brief

The *inchstr, *inchnstr and *instr functions do not return OK.

Detailed Description

LSB 3.1 refers to SUSv2 (The Single UNIX Specification, Version 2) for the description of the libncurses functions. The .RETURN VALUE. section of the description of the functions inchnstr(), inchstr(), mvinchnstr(), mvinchstr(), mvwinchnstr(), mvwinchstr(), winchnstr(), winchstr() and the functions instr(), mvinstr(), mvwinstr() and winstr() states that the functions return OK upon successful completion. However, in this case the above functions form ncurses-5.4 return the number of characters actually read, that is consistent to the descriptions of the functions in ncurses manpages (http://invisible-island.net/ncurses/man/ncurses.3x.html).

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 14. Utility Libraries, 14.5. Interfaces for libncurses.

Accepted

LSB Bugzilla, 1481

Status

Fixed in LSB 4.0

[Home]