summaryrefslogtreecommitdiff
path: root/lib/libc/string
AgeCommit message (Collapse)Author
2001-01-13Sync function comment with man page; fanf@covalent.netTodd C. Miller
2001-01-12Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'Todd C. Miller
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
2000-11-24comment fix; strlcat returns strlen(initial dst) + strlen(src).Jun-ichiro itojun Hagino
2000-11-16"of", not "on" (from Henric Jungheim)Angelos D. Keromytis
2000-11-06The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.Aaron Campbell
From ianm@kashmir.cit.nepean.uws.edu.au.
2000-10-23Document that the string returned by strerror(3) contains a maximum ofAaron Campbell
NL_TEXTMAX characters.
2000-10-18Another round of man page cleanup, this time to remove more hard sentenceAaron Campbell
breaks and getting rid of short lines, making these files easier to work with.
2000-08-09More of the same.Aaron Campbell
2000-08-09Remove trailing blank lines.Aaron Campbell
2000-07-02knf; ouch, that hurtsMichael Shalayeff
2000-07-02new version of ffs from drahn@Michael Shalayeff
combines binary search and table lookup. tested on i386, sparc, ppc, hppa
2000-06-01State explicitly that strlc{py,at} only work on real C strings.Todd C. Miller
Clarify point about always NUL-terminating.
2000-04-24correct exampleTheo de Raadt
2000-04-21Add ERRORS section (the strdup(3) function may fail and set errno to any of theAaron Campbell
errors specified by the library routine malloc(3)).
2000-04-21Check return value of strdup(3) for NULL in example code (duh).Aaron Campbell
2000-04-21Flesh out libc string function man pages.Aaron Campbell
2000-03-04In Unix land we prefer "whitespace" to "white space" or "white-space". AtAaron Campbell
least, this is the impression I get from looking at a lot of Perl docs.
2000-02-29Use Dq/Sq and friends.Aaron Campbell
2000-01-03Grammar; deraadt@Aaron Campbell
1999-11-14Clean up memchr slightly to better match coming memrchrMarc Espie
(K&R-style type promotions are evil),
1999-11-09Install man-page links for strtok_r.Artur Grabowski
1999-11-09Document strtok_r.Artur Grabowski
1999-11-09Implement strtok_r.Artur Grabowski
1999-09-21index/rindex as deprecated synonyms to strchr/strrchr.Marc Espie
1999-09-04Using .Li inside a .Bd -literal block messes up the fonts thereafter;Paul Janzen
.Li ... -> \&...
1999-07-04better wordingAaron Campbell
1999-07-03whoops, fix a bug in my example :)Aaron Campbell
1999-07-03add an exampleAaron Campbell
1999-06-29repairsAaron Campbell
1999-06-29new mdoc bm(3) man pageAaron Campbell
1999-06-17When finding the end of dst, never traverse more than siz bytes. ThisTodd C. Miller
keeps us from misbehaving if the user gives us a src string that is not NUL-terminated. This is one of those "should not happen" cases but it is good to play it safe. Pointed out by Casper Dik <casper@holland.sun.com>
1999-06-06some NAME section cleanupAaron Campbell
1999-06-06Grammatical, spelling, and format fixesPaul Janzen
1999-06-04some repairs, add example to strdup(3) pageAaron Campbell
1999-06-04add examplesAaron Campbell
1999-06-04add an example, similar to the one in strspn.3Aaron Campbell
1999-06-04add an example; pattonme@ns.ra.pae.osd.milAaron Campbell
1999-05-28"SEE ALSO" -> SEE ALSO, missed these files beforeAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-17 o Mention strlcpy and strlcatTodd C. Miller
o strsep is not in ANSI X3.159-1989 (though it is in C9X)
1999-05-16Cleanup xrefs under SEE ALSO. Specifically:Alex Feldman
- Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
1999-05-01Break up into two loops, one for the copy, another to finish traversalTodd C. Miller
of the src string if len(src) >= size. Speeds up the common case a bit.
1999-04-25m68k assembler version of strlcpy(3)Todd C. Miller
1999-04-24simplified version that doesn't call strlen and that is simpler to convert ↵Todd C. Miller
to assembler (both for gcc and me)
1999-03-06add examplesTodd C. Miller
1999-03-06typoTodd C. Miller
1999-03-05better examples section wrt strncpy()Todd C. Miller
1998-11-28.Xr strlcat, strlcpyMarc Espie
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).David Leonard
All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
1998-11-11Fix `typo', proves that strlcpy/strlcat is a very good idea.Marc Espie