Bug 1417 - getopt(3) man page contradiction
Summary: getopt(3) man page contradiction
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-07-22 08:00 UTC by Jens Schweikhardt
Modified: 1996-08-21 20:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Schweikhardt 1996-07-22 08:00:00 UTC
	The man page for getopt(3) says under DESCRIPTION

     The getopt() function returns an EOF when ...
     a non-recognized option is encountered.

    Under DIAGNOSTICS however,

     If the getopt() function encounters a character not found in the string
     optarg ... it ... returns `?' ....

Fix: 

The actual behaviour seems to be the one described under DIAGNOSTICS.

	Jens
--
SIGSIG -- signature too long (core dumped)
How-To-Repeat: 
	man 3 getopt
Comment 1 mpp freebsd_committer freebsd_triage 1996-08-21 20:48:59 UTC
State Changed
From-To: open->closed

getopt(3) was updated to be consistent in how it describes 
its return values.