summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-06-02 11:13:33 +0000
committerderaadt <deraadt@openbsd.org>1997-06-02 11:13:33 +0000
commit95e8e8a309ddb126acd81f320c80db9d93ca3a68 (patch)
treec9fa82d4caec7ab19be808d4dc9093153da70b80 /lib/libc/stdlib/getopt.3
parentno MAP_WRITE, fix like freebsd; spotted by bgrayson@ece.utexas.edu (diff)
downloadwireguard-openbsd-95e8e8a309ddb126acd81f320c80db9d93ca3a68.tar.xz
wireguard-openbsd-95e8e8a309ddb126acd81f320c80db9d93ca3a68.zip
incorrect description; bgrayson@ece.utexas.edu
Diffstat (limited to 'lib/libc/stdlib/getopt.3')
-rw-r--r--lib/libc/stdlib/getopt.312
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 01caf960e88..1e1e14f0840 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getopt.3,v 1.3 1997/04/03 07:22:31 deraadt Exp $
+.\" $OpenBSD: getopt.3,v 1.4 1997/06/02 11:13:33 deraadt Exp $
.\"
.Dd April 19, 1994
.Dt GETOPT 3
@@ -137,12 +137,12 @@ returns \-1.
If the
.Fn getopt
function encounters a character not found in the string
-.Va optarg
+.Va optstring
or detects
-a missing option argument it writes an error message and returns
-.Ql ?
-to the
-.Em stderr .
+a missing option argument it writes an error message to
+.Em stderr
+and returns
+.Ql ? .
Setting
.Va opterr
to a zero will disable these error messages.