diff options
| author | millert <> | 2003-06-02 03:49:39 +0000 |
|---|---|---|
| committer | millert <> | 2003-06-02 03:49:39 +0000 |
| commit | 641433fecfbafa8b672e233702373285f3387119 (patch) | |
| tree | 923f018f068a4a5f7645246366722b2b01149936 /src/lib/libc/stdlib/getopt.3 | |
| parent | 811c6edb6cd0cf5b921627c5c094ed11ed3851df (diff) | |
| download | openbsd-641433fecfbafa8b672e233702373285f3387119.tar.gz openbsd-641433fecfbafa8b672e233702373285f3387119.tar.bz2 openbsd-641433fecfbafa8b672e233702373285f3387119.zip | |
Remove some lies
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/getopt.3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index ce85f678df..d7d69cf15b 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 | |||
| @@ -29,9 +29,9 @@ | |||
| 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.23 2003/06/01 19:27:27 jmc Exp $ | 32 | .\" $OpenBSD: getopt.3,v 1.24 2003/06/02 03:49:39 millert Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd December 8, 2002 | 34 | .Dd December 17, 2002 |
| 35 | .Dt GETOPT 3 | 35 | .Dt GETOPT 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -85,10 +85,6 @@ contains the index to the next | |||
| 85 | argument for a subsequent call | 85 | argument for a subsequent call |
| 86 | to | 86 | to |
| 87 | .Fn getopt . | 87 | .Fn getopt . |
| 88 | The variable | ||
| 89 | .Va optopt | ||
| 90 | saves the last known option character returned by | ||
| 91 | .Fn getopt . | ||
| 92 | .Pp | 88 | .Pp |
| 93 | The variables | 89 | The variables |
| 94 | .Va opterr | 90 | .Va opterr |
| @@ -137,7 +133,8 @@ encounters a character not found in | |||
| 137 | .Fa optstring | 133 | .Fa optstring |
| 138 | or if it detects a missing option argument, | 134 | or if it detects a missing option argument, |
| 139 | it returns | 135 | it returns |
| 140 | .Sq ? . | 136 | .Sq ? |
| 137 | (question mark). | ||
| 141 | If | 138 | If |
| 142 | .Fa optstring | 139 | .Fa optstring |
| 143 | has a leading | 140 | has a leading |
| @@ -146,6 +143,9 @@ then a missing option argument causes | |||
| 146 | .Sq \: | 143 | .Sq \: |
| 147 | to be returned instead of | 144 | to be returned instead of |
| 148 | .Sq ? . | 145 | .Sq ? . |
| 146 | In either case, the variable | ||
| 147 | .Va optopt | ||
| 148 | is set to the character that caused the error. | ||
| 149 | The | 149 | The |
| 150 | .Fn getopt | 150 | .Fn getopt |
| 151 | function returns \-1 when the argument list is exhausted. | 151 | function returns \-1 when the argument list is exhausted. |
