summaryrefslogtreecommitdiff
path: root/popt.h
diff options
context:
space:
mode:
Diffstat (limited to 'popt.h')
-rw-r--r--popt.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/popt.h b/popt.h
index 6489fa7..b123272 100644
--- a/popt.h
+++ b/popt.h
@@ -470,8 +470,6 @@ int poptDupArgv(int argc, /*@null@*/ const char **argv,
* Parse a string into an argument array.
* The parse allows ', ", and \ quoting, but ' is treated the same as " and
* both may include \ quotes.
- * @note: The argument array is malloc'd as a single area, so only argv must
- * be free'd.
*
* @param s string to parse
* @retval argcPtr address of returned no. of arguments
@@ -482,6 +480,13 @@ int poptParseArgvString(const char * s,
/*@modifies *argcPtr, *argvPtr @*/;
/** \ingroup popt
+ * Free the argument array.
+ * @param argv argument array.
+ * @retval NULL always
+ */
+const char ** poptArgvFree(const char ** argv);
+
+/** \ingroup popt
* Parses an input configuration file and returns an string that is a
* command line. For use with popt. You must free the return value when done.
*