summaryrefslogtreecommitdiff
path: root/include/apr_getopt.h
diff options
context:
space:
mode:
authordgaudet <dgaudet@unknown>2000-04-14 01:38:48 +0000
committerdgaudet <dgaudet@unknown>2000-04-14 01:38:48 +0000
commit2e7a509cfe7bac9c3f8fe42dd93b0ff883caa452 (patch)
tree02f9226b718c9c1869fe8c13629ff4feace63705 /include/apr_getopt.h
parentefc05063124b21dbd2319df9e400f56f66a2437f (diff)
downloadapr-2e7a509cfe7bac9c3f8fe42dd93b0ff883caa452.tar.gz
more documentation movement
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_getopt.h')
-rw-r--r--include/apr_getopt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/apr_getopt.h b/include/apr_getopt.h
index 97e12bfd8..b0bf7eec9 100644
--- a/include/apr_getopt.h
+++ b/include/apr_getopt.h
@@ -63,6 +63,25 @@ API_VAR_IMPORT int
API_VAR_IMPORT char *
ap_optarg; /* argument associated with option */
+/* ***APRDOC********************************************************
+ * ap_status_t ap_getopt(ap_int32_t nargc, char *const *nargv,
+ * const char *ostr, ap_int32_t *rv, ap_context_t *cont)
+ * Parse the command line options passed to the program.
+ * arg 1) The number of arguments passed to ap_getopt to parse
+ * arg 2) The array of command line options to parse
+ * arg 3) A string of characters that are acceptable options to the program.
+ * characters followed by ":" are required to have an option
+ * associated
+ * arg 4) The next option found. There are four potential values for
+ * this variable on exit. They are:
+ * APR_EOF -- No more options to parse
+ * APR_BADCH -- Found a bad option character
+ * APR_BADARG -- Missing parameter for the found option
+ * Other -- The next option found.
+ * arg 5) The context to operate on.
+ * NOTE: Arguments 2 and 3 are most commonly argc and argv from
+ * main(argc, argv)
+ */
ap_status_t ap_getopt(ap_int32_t nargc, char *const *nargv, const char *ostr,
ap_int32_t *rv, ap_context_t *cont);