Unix Programming - Re: Shouldn't getopt_long() return ':' for options requiring an

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2005 > Re: Shouldn't getopt_long() return ':' for options requiring an





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Shouldn't getopt_long() return ':' for options requiring an
Måns Rullgård

2005-04-24, 5:48 pm

"Eric Lilja" <mindcooler_thisshouldberemoved@gmail.com> writes:

> "Måns Rullgård" <mru@inprovide.com> wrote:
>
> Hmm, I must be daft or something, but does that mean that getopt_long() only
> returns ':' if the user had supplied --:option_with_argument on the command
> line?


It means the string passed to getopt() (short_options in your example)
should start with a colon.

--
Måns Rullgård
mru@inprovide.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com