anonymous
  • 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 brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
also, how do I write a manpage for my C program?
shadowfiend
  • shadowfiend
There are a variety of libraries for it. One of the ones I've heard most about is getopt -> http://www.gnu.org/software/libc/manual/html_node/Getopt.html#Getopt . Man pages use a fairly simple markup language reminiscent of a couple of more modern ones. There's a guide at http://www.linuxfocus.org/English/November2003/article309.shtml for writing a man page.

Looking for something else?

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