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
also, how do I write a manpage for my C program?
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.
Join our real-time social learning platform and learn together with your friends!