diff options
| author | aaron <> | 1999-05-27 13:09:09 +0000 |
|---|---|---|
| committer | aaron <> | 1999-05-27 13:09:09 +0000 |
| commit | 629cc1e026f715bef9adfabd8b33329332499ebe (patch) | |
| tree | 77b3596fba528b5c849e6476e698ebb3a1818896 /src/lib/libc | |
| parent | 57296c612c4cd0e23f9467bfe1b60679cff7deaa (diff) | |
| download | openbsd-629cc1e026f715bef9adfabd8b33329332499ebe.tar.gz openbsd-629cc1e026f715bef9adfabd8b33329332499ebe.tar.bz2 openbsd-629cc1e026f715bef9adfabd8b33329332499ebe.zip | |
getopt(3) does not return -1 when encountering unrecognized options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/stdlib/getopt.3 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index 1697f58ec8..57d2c3668b 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 31 | .\" | 31 | .\" |
| 32 | .\" $OpenBSD: getopt.3,v 1.7 1999/05/23 14:11:03 aaron Exp $ | 32 | .\" $OpenBSD: getopt.3,v 1.8 1999/05/27 13:09:09 aaron Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd April 19, 1994 | 34 | .Dd April 19, 1994 |
| 35 | .Dt GETOPT 3 | 35 | .Dt GETOPT 3 |
| @@ -121,8 +121,7 @@ The | |||
| 121 | .Fn getopt | 121 | .Fn getopt |
| 122 | function | 122 | function |
| 123 | returns \-1 | 123 | returns \-1 |
| 124 | when the argument list is exhausted, or a non-recognized | 124 | when the argument list is exhausted. |
| 125 | option is encountered. | ||
| 126 | The interpretation of options in the argument list may be cancelled | 125 | The interpretation of options in the argument list may be cancelled |
| 127 | by the option | 126 | by the option |
| 128 | .Ql -- | 127 | .Ql -- |
