summaryrefslogtreecommitdiff
path: root/src/lib/libc/string (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Sync function comment with man page; fanf@covalent.netmillert2001-01-131-3/+3
|
* Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'millert2001-01-121-3/+3
| | | | not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
* comment fix; strlcat returns strlen(initial dst) + strlen(src).itojun2000-11-241-3/+4
|
* "of", not "on" (from Henric Jungheim)angelos2000-11-161-2/+2
|
* The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.aaron2000-11-061-3/+3
| | | | From ianm@kashmir.cit.nepean.uws.edu.au.
* Document that the string returned by strerror(3) contains a maximum ofaaron2000-10-231-2/+6
| | | | NL_TEXTMAX characters.
* Another round of man page cleanup, this time to remove more hard sentenceaaron2000-10-181-2/+3
| | | | breaks and getting rid of short lines, making these files easier to work with.
* More of the same.aaron2000-08-091-2/+3
|
* Remove trailing blank lines.aaron2000-08-091-2/+1
|
* knf; ouch, that hurtsmickey2000-07-021-6/+7
|
* new version of ffs from drahn@mickey2000-07-021-38/+28
| | | | | combines binary search and table lookup. tested on i386, sparc, ppc, hppa
* State explicitly that strlc{py,at} only work on real C strings.millert2000-06-011-3/+22
| | | | Clarify point about always NUL-terminating.
* correct examplederaadt2000-04-241-5/+6
|
* Add ERRORS section (the strdup(3) function may fail and set errno to any of theaaron2000-04-211-1/+8
| | | | errors specified by the library routine malloc(3)).
* Check return value of strdup(3) for NULL in example code (duh).aaron2000-04-211-2/+5
|
* Flesh out libc string function man pages.aaron2000-04-2131-183/+141
|
* In Unix land we prefer "whitespace" to "white space" or "white-space". Ataaron2000-03-041-2/+2
| | | | least, this is the impression I get from looking at a lot of Perl docs.
* Use Dq/Sq and friends.aaron2000-02-291-16/+29
|
* Grammar; deraadt@aaron2000-01-031-2/+2
|
* Clean up memchr slightly to better match coming memrchrespie1999-11-141-4/+4
| | | | (K&R-style type promotions are evil),
* Install man-page links for strtok_r.art1999-11-091-1/+2
|
* Document strtok_r.art1999-11-091-8/+19
|
* Implement strtok_r.art1999-11-091-5/+15
|
* index/rindex as deprecated synonyms to strchr/strrchr.espie1999-09-2111-193/+39
|
* Using .Li inside a .Bd -literal block messes up the fonts thereafter;pjanzen1999-09-041-4/+4
| | | | .Li ... -> \&...
* better wordingaaron1999-07-041-3/+3
|
* whoops, fix a bug in my example :)aaron1999-07-031-2/+2
|
* add an exampleaaron1999-07-031-3/+38
|
* repairsaaron1999-06-2911-33/+41
|
* new mdoc bm(3) man pageaaron1999-06-291-53/+54
|
* When finding the end of dst, never traverse more than siz bytes. Thismillert1999-06-171-5/+5
| | | | | | 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>
* some NAME section cleanupaaron1999-06-066-14/+14
|
* Grammatical, spelling, and format fixespjanzen1999-06-063-6/+6
|
* some repairs, add example to strdup(3) pageaaron1999-06-047-31/+44
|
* add examplesaaron1999-06-042-23/+40
|
* add an example, similar to the one in strspn.3aaron1999-06-041-1/+15
|
* add an example; pattonme@ns.ra.pae.osd.milaaron1999-06-041-1/+15
|
* "SEE ALSO" -> SEE ALSO, missed these files beforeaaron1999-05-281-2/+2
|
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-238-16/+16
| | | | is used instead; kwesterback@home.com
* o Mention strlcpy and strlcatmillert1999-05-171-3/+10
| | | | o strsep is not in ANSI X3.159-1989 (though it is in C9X)
* Cleanup xrefs under SEE ALSO. Specifically:alex1999-05-162-10/+10
| | | | | | | - Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
* Break up into two loops, one for the copy, another to finish traversalmillert1999-05-011-13/+17
| | | | of the src string if len(src) >= size. Speeds up the common case a bit.
* m68k assembler version of strlcpy(3)millert1999-04-251-3/+3
|
* simplified version that doesn't call strlen and that is simpler to convert ↵millert1999-04-241-7/+8
| | | | to assembler (both for gcc and me)
* add examplesmillert1999-03-061-1/+40
|
* typomillert1999-03-061-3/+3
|
* better examples section wrt strncpy()millert1999-03-051-3/+35
|
* .Xr strlcat, strlcpyespie1998-11-282-4/+7
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-7/+7
| | | | | | | | | | | | | 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
* Fix `typo', proves that strlcpy/strlcat is a very good idea.espie1998-11-111-2/+9
|