Browse Source

getopt(3) does not return -1 when encountering unrecognized options

OPENBSD_2_6
aaron 25 years ago
parent
commit
6f3ecc442a
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/lib/libc/stdlib/getopt.3

+ 2
- 3
src/lib/libc/stdlib/getopt.3 View File

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: getopt.3,v 1.7 1999/05/23 14:11:03 aaron Exp $
.\" $OpenBSD: getopt.3,v 1.8 1999/05/27 13:09:09 aaron Exp $
.\" .\"
.Dd April 19, 1994 .Dd April 19, 1994
.Dt GETOPT 3 .Dt GETOPT 3
@ -121,8 +121,7 @@ The
.Fn getopt .Fn getopt
function function
returns \-1 returns \-1
when the argument list is exhausted, or a non-recognized
option is encountered.
when the argument list is exhausted.
The interpretation of options in the argument list may be cancelled The interpretation of options in the argument list may be cancelled
by the option by the option
.Ql -- .Ql --


Loading…
Cancel
Save