c: add document for getopt