argpar.h: argpar_iter_create(): add iterator lifetime details
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 1 Jun 2021 15:30:15 +0000 (11:30 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 4 Jun 2021 17:59:12 +0000 (13:59 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I57be39db6b3b5dd149ccdb82a5971fffa3c68264

argpar/argpar.h

index 9da99d3324ead19564e0c2dbf4d6d0eccbf52c4c..453f53385eec786140b425eae1f9d157b2cbeda1 100644 (file)
@@ -290,7 +290,9 @@ void argpar_parse_ret_fini(struct argpar_parse_ret *ret);
  * actually start parsing the arguments.
  *
  * `*argv` and `*descrs` must NOT change for the lifetime of the
- * returned iterator (until you call argpar_iter_destroy()).
+ * returned iterator (until you call argpar_iter_destroy()) and for the
+ * lifetime of any parsing item (until you call argpar_item_destroy())
+ * argpar_iter_next() creates for the returned iterator.
  *
  * Call argpar_iter_next() with the returned iterator to obtain the next
  * parsing result (item).
This page took 0.023715 seconds and 4 git commands to generate.