aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-03 12:27:25 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-03 12:27:25 +0000
commit9cfa958b042845062963a0f8bdedef45a0eaf34d (patch)
treec329baa5221e9a09844482c842dc78af7468e312 /libbb
parent28a3767f8434dd3735e4d719da847dddf960776a (diff)
downloadbusybox-w32-9cfa958b042845062963a0f8bdedef45a0eaf34d.tar.gz
busybox-w32-9cfa958b042845062963a0f8bdedef45a0eaf34d.tar.bz2
busybox-w32-9cfa958b042845062963a0f8bdedef45a0eaf34d.zip
zcip: getopt -> bb_getopt_ulflags
git-svn-id: svn://busybox.net/trunk/busybox@16037 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt_ulflags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c
index 19c96914d..e0dc1371f 100644
--- a/libbb/getopt_ulflags.c
+++ b/libbb/getopt_ulflags.c
@@ -36,6 +36,13 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...)
36 and so on. You can also look at the return value as a bit 36 and so on. You can also look at the return value as a bit
37 field and each option sets one bit. 37 field and each option sets one bit.
38 38
39 On exit, global variable optind is set so that if you
40 will do argc -= optind; argv += optind; then
41 argc will be equal to number of remaining non-option
42 arguments, first one would be in argv[0], next in argv[1] and so on
43 (options and their parameters will be moved into argv[]
44 positions prior to argv[optind]).
45
39 ":" If one of the options requires an argument, then add a ":" 46 ":" If one of the options requires an argument, then add a ":"
40 after the char in applet_opts and provide a pointer to store 47 after the char in applet_opts and provide a pointer to store
41 the argument. For example: 48 the argument. For example: