diff options
author | jaredy <> | 2005-07-26 04:14:58 +0000 |
---|---|---|
committer | jaredy <> | 2005-07-26 04:14:58 +0000 |
commit | 724bc3c0b0563d7753d33d7075ac6f4c83cb9c65 (patch) | |
tree | 56f647f277ca4bbe4f381cf946b253fb320957d8 /src | |
parent | 74f98fb019925b29c9cd4979435ee3ca17f74984 (diff) | |
download | openbsd-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.3 | 13 |
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 | |||
166 | is ignored. | 166 | is ignored. |
167 | .El | 167 | .El |
168 | .Sh EXAMPLES | 168 | .Sh EXAMPLES |
169 | .Bd -literal -compact | 169 | The following code accepts the options |
170 | .Fl b | ||
171 | and | ||
172 | .Fl f Ar argument | ||
173 | and adjusts | ||
174 | .Va argc | ||
175 | and | ||
176 | .Va argv | ||
177 | after option argument processing has completed. | ||
178 | .Bd -literal -offset indent | ||
170 | extern char *optarg; | 179 | extern char *optarg; |
171 | extern int optind; | 180 | extern int optind; |
172 | int bflag, ch, fd; | 181 | int bflag, ch, fd; |