millert
0f37c5c11d
According to POSIX, if the src and dst strings overlap, the behavior
is undefined. Add a warning to that effect. OK deraadt@ jmc@
11 years ago
schwarze
c5c3b8f6ac
use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@
11 years ago
tedu
3d36d226ed
Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze
12 years ago
jmc
dfc0bf8b46
tweak previous;
13 years ago
deraadt
21ec91c765
simplify the strlcpy/strlcat manual page substantially. do less
explaining of "what a C string is", and make it more clear that these
functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants
to write a 'strlcpy considered harmful' paper should probably write a
'strlcpy and snprintf considered harmful' paper instead).
note to those from other projects reading this commit message: It would
be very good if this new manual was picked up in your project.
ok jmc millert krw
13 years ago
schwarze
52886b1c8c
update HISTORY and SEE ALSO for all of string(3), together with various
smaller improvements; jmc@ and nicm@ both ask me to get this in because
further tweaking will be easier in-tree
13 years ago
jmc
14302f5699
convert to new .Dd format;
18 years ago
jaredy
0282ec9c24
add HISTORY; ok jmc
19 years ago
jaredy
1f6f803468
- macro, punctuation, and rewording tweaks
- avoid first person.
ok jmc
19 years ago
millert
4f09d8e4af
Sync with share/misc/license.template and add missing DARPA credit
where applicable.
22 years ago
millert
dc2a63b6dd
Change copyright to a less restrictive ISC-style license to encourage
people to bundle this code.
22 years ago
mpech
93a232f650
Initial cleanup:
o) remove extra space in the end of line;
o) remove extra blank lines in the end of file;
o) remove .Pp before .Ss;
o) CAVEAT -> CAVEATS;
o) fix usage of .Fa;
o) <blank-line> -> .Pp;
o) wrap long lines;
millert@ ok
23 years ago
millert
4678ee92f7
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
24 years ago
millert
a2733e1619
Document boundary condition when size < strlen(dst).
24 years ago
angelos
a8575fe917
"of", not "on" (from Henric Jungheim)
24 years ago
aaron
e93bcc1d43
The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.
From ianm@kashmir.cit.nepean.uws.edu.au .
24 years ago
aaron
22e70c114c
Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.
24 years ago
millert
c59961eebe
State explicitly that strlc{py,at} only work on real C strings.
Clarify point about always NUL-terminating.
25 years ago
aaron
b419710bcf
Flesh out libc string function man pages.
25 years ago
pjanzen
121f5e54e4
Using .Li inside a .Bd -literal block messes up the fonts thereafter;
.Li ... -> \&...
26 years ago
aaron
1fb47c1d6b
some NAME section cleanup
26 years ago
alex
a26623b581
Cleanup xrefs under SEE ALSO. Specifically:
- Sort xrefs by section, and then alphabetically.
- Add missing commas between xref items.
- Remove commas from the last xref entry.
- Remove duplicate entries.
26 years ago
espie
775006271f
Fix `typo', proves that strlcpy/strlcat is a very good idea.
26 years ago
millert
a200d1ca9a
strlxx() return size_t not char *
27 years ago
millert
ed7da885dd
add strlcpy/strlcat, safe and sensible string copy/append
27 years ago