The sample code shows how to use the getopt() function to parse the command-line options in a C or C++ program. Options may have no argument at all, or have one or more arguments.

Project Activity

See All Activity >

License

GNU Library or Lesser General Public License version 2.0 (LGPLv2)

Follow Getopt Sample

Getopt Sample Web Site

Other Useful Business Software
Atera - an All-in-one platform for IT management Icon
Atera - an All-in-one platform for IT management

Ideal for IT departments and MSPs (managed service providers)

Your IT essentials, integrated & elevated. Take your IT management from automated to autonomous, download Atera's agent to start your free trial!
Try Atera now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Getopt Sample!

Additional Project Details

Operating Systems

BSD, Linux

Intended Audience

Developers

User Interface

Command-line

Programming Language

C, C++

Related Categories

C++ Software Development Software, C Software Development Software

Registered

2007-07-23