• anonymous
Is there a conventional way for a C program to parse command line arguments? I know that Python has argparse (and similar stuff) in its standard library to handle such things. Since linux is all command-line, and tons of linux applications are in C or C++, there probably is some sort of "standard" way (or something close) for C programs to do it. :-D
Computer Science
  • Stacey Warren - Expert
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
  • schrodinger
I got my questions answered at in under 10 minutes. Go to now for free help!
  • anonymous
also, how do I write a manpage for my C program?
  • shadowfiend
There are a variety of libraries for it. One of the ones I've heard most about is getopt -> . Man pages use a fairly simple markup language reminiscent of a couple of more modern ones. There's a guide at for writing a man page.

Looking for something else?

Not the answer you are looking for? Search for more explanations.