OS4 DepotLogo by Nickman 
(anonymous IP: 54.161.206.110) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (321)
   o Datatype (47)
   o Demo (176)
   o Development (485)
      o Cross (35)
      o Debug (8)
      o Edit (5)
      o Example (31)
      o Game (19)
      o Guitool (5)
      o Ide (6)
      o Install (0)
      o Language (34)
      o Library (241)
         o Audio (54)
         o Graphics (63)
         o Gui (6)
         o Math (8)
         o Misc (101)
         o Toolkit (8)
      o Misc (26)
      o Utility (75)
      o Webtool (0)
   o Document (19)
   o Driver (81)
   o Emulation (131)
   o Game (782)
   o Graphics (422)
   o Library (70)
   o Network (185)
   o Office (49)
   o Utility (731)
   o Video (56)

Total files: 3555

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


Support the site


 Readme for:  Development » Library » Misc » freegetopt.lha

Freegetopt

Description: Parse arguments passed to your program
Download: freegetopt.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 17kb
Version: 0.11
Date: 09 Apr 08
Author: Mark K. Kim, Fredrik Wikstrom (OS4 compile)
Submitter: Fredrik Wikstrom
Email: fredrik/a500 org
Homepage: http://a500.org
Category: development/library/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 3593
 
Comments: 0  [View]
Snapshots: 0  [View]
Downloads: 94  (Current version)
94  (Accumulated)

Show content Show crashlogs Replace file 
Installation:

Copy libfreegetopt.a SDK:Local/newlib/lib/
Copy getopt.h SDK:Local/newlib/include/

Usage:

gcc -o blah.exe blah1.o blah2.o -lfreegetopt

--- original readme ---

******************************************************************************
Please read the file LICENSE for the terms of use and distribution of this
software.
******************************************************************************

"getopt" is a library that allows a parsing of arguments passed
to a program.  This is a useful library used in many software.
There are many versions of the getopt library available, two
popular versions being the BSD getopt and the GNU getopt.

BSD getopt is somewhat old, dated, and isn't very user-friendly.
The GNU getopt is great, except the user license doesn't let you
statically link the library to a proprietary software.  This
is usually not a problem on modern operating systems that allow
dynamic links to libraries, but sometimes you just gotta link
the library statically for one reason or another.  That's where
Free Getopt steps in.

Functionally, this getopt library is equivalent to GNU's getopt
library (the short option version, not the long one) in almost
every aspect.  The only exception is how the "optind" variable
increments.  Apparently due to different algorithms used by my
program and the GNU getopt, the "optind" changes quite differently
between our two software.  I personally find my algorithm to be
quite elegant; I couldn't tell you about the GNU version since
I never looked at its source.

GNU's getopt_long support is in progress.

This library was deliberately left in non-library (not in
*.lib, *.so, or *.a) form because it's most likely to be
statically-linked in various platforms, and linking it
directly from source is probably the most straight-forward
way to use the software in any platform.

I hope you find this software useful.

Mark K. Kim

$Header: /cvsroot/freegetopt/freegetopt/README,v 1.2 2003/10/26 03:10:19 vindaci
Exp $




Copyright (c) 2004-2014 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment