[OCLUG-devel] getopts

Dan Stromberg strombrg at dcs.nac.uci.edu
Thu Jul 14 12:52:25 PDT 2005


getopt, getopt_long.

getopt is on just about any *ix.

getopt_long is more likely to be present on linux systems, but if you
want getopt_long functionality, cross-platform, you can include the
sources to getopt_long.

I just noticed that there's now a "getopt_long_only", also.

On Thu, 2005-07-14 at 12:14 -0700, Doug Jolley wrote:
> I'm assuming that there must exist a C library function for parsing
> command line arguments similar to the bash getopts builtin command. 
> In fact, I wouldn't be surprised if the C function served as the basis
> of all such functions.  Anyway, can someone tell me where to find this
> function and info on how to use it?  Thanks.
> 
>      ... doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://localhost.localdomain/pipermail/oclug-devel/attachments/20050714/05b19f95/attachment.bin 


More information about the OCLUG-devel mailing list