Extended options with getopt()?

Hi, there.

I was looking at the help file for the getopt() function in QNX4 and I
was unclear what the difference between “normal” options and “extended”
options. Would someone explain to me the difference and perhaps provide
an example of an extended option on the command line.

Sorry if this is too simple a question. TIA.

Rodney Lott

Rodney Lott <rod@fuelcelltechnologies.ca> wrote:
: Hi, there.

: I was looking at the help file for the getopt() function in QNX4 and I
: was unclear what the difference between “normal” options and “extended”
: options. Would someone explain to me the difference and perhaps provide
: an example of an extended option on the command line.

To paraphrase the docs, if you define the POSIX_STRICT environment
variable, getopt() disables the extended options.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems