summaryrefslogtreecommitdiff
path: root/popt.3
diff options
context:
space:
mode:
authorjbj <jbj>2007-12-11 22:02:40 +0000
committerjbj <jbj>2007-12-11 22:02:40 +0000
commit627335e335cc1d9b62647824ff9c514cedb8c075 (patch)
tree6091c3acc5779f6a77850b191df26455586a5af5 /popt.3
parented802ba88dacd4f98c19e22b7aac2fd45861376e (diff)
downloadlibpopt-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.33
1 files changed, 2 insertions, 1 deletions
diff --git a/popt.3 b/popt.3
index 5da0c1f..66eedb0 100644
--- a/popt.3
+++ b/popt.3
@@ -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,