diff options
author | jbj <jbj> | 2007-12-11 22:02:40 +0000 |
---|---|---|
committer | jbj <jbj> | 2007-12-11 22:02:40 +0000 |
commit | 627335e335cc1d9b62647824ff9c514cedb8c075 (patch) | |
tree | 6091c3acc5779f6a77850b191df26455586a5af5 /popt.3 | |
parent | ed802ba88dacd4f98c19e22b7aac2fd45861376e (diff) | |
download | libpopt-627335e335cc1d9b62647824ff9c514cedb8c075.tar.gz |
- jbj: add a %track section (as in rpm-5.0) to popt.spec.popt-1_13-release
- jbj: chg poptGetOptArg() to "char *", document application needs to free.
Diffstat (limited to 'popt.3')
-rw-r--r-- | popt.3 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -362,11 +362,12 @@ ways to discover them. One is to ask popt to fill in a variable with the .sp .nf .B #include <popt.h> -.BI "const char * poptGetOptArg(poptContext " con ");" +.BI "char * poptGetOptArg(poptContext " con ");" .fi .sp This function returns the argument given for the final option returned by .BR poptGetNextOpt() ", or it returns " NULL " if no argument was specified." +The calling function is responsible for deallocating this string. .sp .SS "4. LEFTOVER ARGUMENTS" Many applications take an arbitrary number of command-line arguments, |