diff options
Diffstat (limited to 'popt.h')
-rw-r--r-- | popt.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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. * |