diff options
Diffstat (limited to 'src/lib/libc/stdlib')
| -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; |
