Details

[Home]

Issue of the Standard # S0231

Brief

Remark to descriptions of getopt_long() and getopt_long_only() functions

Detailed Description

The descriptions of functions getopt_long() and getopt_long_only() have no information on purpose of ‘int* longindex’ parameter.

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 13. Base Libraries, 13.5. Interface Definitions for libc, description of function getopt_long, description of function getopt_long_only.

Possible solutions

Take the description of longindex from the man page of the getopt_long() function: "If longindex is not NULL, it points to a variable which is set to the index of the long option relative to longopts".

Accepted

LSB Bugzilla, 1352

Status

Fixed in LSB 3.2

[Home]