jmc
14302f5699
convert to new .Dd format;
18 years ago
millert
92657c3d56
Support for optional args separated with whitespace was removed
some time ago--it caused too many problems.
18 years ago
ray
9ee3d71486
Removes extraneous variables from getopt(3). Inspired by one of
David Hill's diffs.
ok otto
19 years ago
jaredy
04a4c1a148
tidy up examples
- use err() for error handling
- add lint hints
- spacing nits and missing braces
ok otto
19 years ago
jmc
8e5ce97e5d
kill errant blank line;
19 years ago
jaredy
eb2659255c
- typos, punctuation, layout, macro tweaks
- break long lines
ok jmc
19 years ago
jaredy
fcfe8543e4
provide a description of the EXAMPLE; ok jmc
19 years ago
jmc
b8c35046aa
whitespace;
20 years ago
millert
6ec8c4af59
More robust example of numeric argument handling. The old example
code would dereference NULL for mixed letter and number args.
OK deraadt@
20 years ago
millert
06b10d0e9a
Document that historic BSD getopt(3) set optopt for each char, not just
on error.
20 years ago
jmc
33a9bd8e29
tweaks from michael knudsen;
20 years ago
millert
a53209548a
Document why not to set optind = 0. Inspired by and OK jfb@
20 years ago
millert
6724eaa976
Document the optional argument support and as well as where we differ from
POSIX and/or GNU. deraadt@ and jmc@ OK
21 years ago
jmc
4662b6d15f
typos from wiz@netbsd (including one from a PR from Quentin Garnier);
slight sync with NetBSD page;
ok millert@
21 years ago
jmc
5d9d9c2154
escape punctuation;
ok deraadt@
21 years ago
millert
679cd5d050
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
22 years ago
millert
20542d1d50
Remove some lies
22 years ago
jmc
fdc9cd7b4e
- section reorder
- merge COMPATIBILITY
- kill whitespace at EOL
22 years ago
jmc
a7d1a88bc4
typos;
22 years ago
jsyn
e0dd35b3b8
make the second example valid; ok millert@
22 years ago
millert
cb897658ca
In BUGS section, append a warning to not use '-' as the first character
of optstring to avoid a semantic conflict with GNU getopt.
22 years ago
millert
26eca9994a
Add "RETURN VALUES" sections
22 years ago
millert
6f124adcac
.Xr getopt_long
22 years ago
miod
6819b734ce
Suggest better types in examples; from NetBSD
22 years ago
miod
fba1d2eff0
deraadt@ objects to the caveat remark, so remove it.
23 years ago
miod
b796301032
Add a caveat section pointing out that people affecting the return value
of getopt() to char variables instead of int lose on arches where char is
unsigned by default.
Clean the example by not pasting parts of <unistd.h> into it, and by not
using atoi(3).
23 years ago
aaron
01bdb7e580
.Sh EXAMPLE -> .Sh EXAMPLES. Move this section before SEE ALSO where it
belongs. Closes PR/1554 from bk@rt.fm .
24 years ago
aaron
e985eebf26
Flesh out stdlib function man pages.
25 years ago
aaron
d4dc0165bd
In Unix land we prefer "whitespace" to "white space" or "white-space". At
least, this is the impression I get from looking at a lot of Perl docs.
25 years ago
deraadt
08f28aa616
repair
25 years ago
espie
100929b794
typo
25 years ago
aaron
5457e11d62
first round of repairs on stdlib
26 years ago
aaron
6f3ecc442a
getopt(3) does not return -1 when encountering unrecognized options
26 years ago
aaron
4ac47893f2
remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com
26 years ago
deraadt
46be3c6c79
indent nice
27 years ago
deraadt
dc1f8757ed
indent; dima
27 years ago
deraadt
0a3b0b9a57
incorrect description; bgrayson@ece.utexas.edu
28 years ago
deraadt
78d1ef8fab
an -> a; soil@quick.net
28 years ago
tholo
fcedf08ffa
Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly
29 years ago
deraadt
47b73ff83c
initial import of NetBSD tree
29 years ago