summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjaredy <>2005-07-26 04:14:58 +0000
committerjaredy <>2005-07-26 04:14:58 +0000
commit724bc3c0b0563d7753d33d7075ac6f4c83cb9c65 (patch)
tree56f647f277ca4bbe4f381cf946b253fb320957d8 /src
parent74f98fb019925b29c9cd4979435ee3ca17f74984 (diff)
downloadopenbsd-724bc3c0b0563d7753d33d7075ac6f4c83cb9c65.tar.gz
openbsd-724bc3c0b0563d7753d33d7075ac6f4c83cb9c65.tar.bz2
openbsd-724bc3c0b0563d7753d33d7075ac6f4c83cb9c65.zip
provide a description of the EXAMPLE; ok jmc
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/getopt.313
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index c721bbcff9..ed4456f52f 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: getopt.3,v 1.33 2005/07/01 05:18:57 jmc Exp $ 28.\" $OpenBSD: getopt.3,v 1.34 2005/07/26 04:14:58 jaredy Exp $
29.\" 29.\"
30.Dd December 17, 2002 30.Dd December 17, 2002
31.Dt GETOPT 3 31.Dt GETOPT 3
@@ -166,7 +166,16 @@ in
166is ignored. 166is ignored.
167.El 167.El
168.Sh EXAMPLES 168.Sh EXAMPLES
169.Bd -literal -compact 169The following code accepts the options
170.Fl b
171and
172.Fl f Ar argument
173and adjusts
174.Va argc
175and
176.Va argv
177after option argument processing has completed.
178.Bd -literal -offset indent
170extern char *optarg; 179extern char *optarg;
171extern int optind; 180extern int optind;
172int bflag, ch, fd; 181int bflag, ch, fd;