Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (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

OpenStudy (anonymous):

also, how do I write a manpage for my C program?

OpenStudy (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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!