]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/opt.h
opt: increase testing coverage on 64 bit platforms
[ccan] / ccan / opt / opt.h
index 550c342d7b190249adbcb9b89f4384b3522aaf4a..55a78d8ff139e9cbe1de384d4d1da0021557e3aa 100644 (file)
@@ -187,10 +187,12 @@ void opt_register_table(const struct opt_table *table, const char *desc);
 bool opt_parse(int *argc, char *argv[], void (*errlog)(const char *fmt, ...));
 
 /**
- * opt_free_table - free the table.
+ * opt_free_table - reset the opt library.
  *
- * This frees the internal memory. Call this as the last
- * opt function.
+ * This frees the internal memory and returns counters to zero.  Call
+ * this as the last opt function to avoid memory leaks.  You can also
+ * use this function to reset option handling to its initial state (no
+ * options registered).
  */
 void opt_free_table(void);