I\'m trying to write a program that can compare two files line by line, word by word, or character by character in C. It has to be able to read in command line options
Docopt has a C implementation that I thought was quite nice: https://github.com/docopt/docopt.c
From a man-page standardized format describing command line options, docopt infers and creates an argument parser. This got started in python; the python version literally just parses the docstring and returns a dict. To do this in C takes a little more work, but it's clean to use and has no external dependencies.