summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
* Note that strncmp() will not compare characters after a NUL character.mike2001-10-111-1/+8
| | | | | | | Add a missing word. Bump document date. Inspired by: IEEE Std 1003.1-200x (Draft 7) MFC after: 3 days
* Clarify that strnstr() will stop searching after in encounters a NULmike2001-10-111-5/+8
| | | | character. Bump document date. Add a missing comma.
* Implement strcasestr() which many others (f.e. Linux) already have.ache2001-10-103-2/+79
|
* Document the fact that the strnstr(3) function is not portable.mike2001-10-091-0/+5
| | | | Requested by: brian, gad
* Add a new libc function, strnstr(3), which allows one to limit themike2001-10-093-11/+122
| | | | | | | | number of characters that are searched. This is especially useful with file operations and non-NUL terminated strings. Silence from: -audit, -hackers MFC after: 5 days
* Fixed syntax errors in synopsis. The restrict keyword doesn't exist yet.bde2001-10-031-5/+5
| | | | | | The corresponding bugs in <wchar.h> have no effect because the function prototypes there don't have args so the __restrict "keyword" is misinterpreted as an arg.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-0135-36/+36
|
* Note that strdup(3) will set errno if memory allocation fails. Thismike2001-09-231-1/+4
| | | | | | is also required by the forthcoming POSIX.1-200x standard. Obtained from: malloc.3
* o Various mdoc fixes.mike2001-08-091-10/+50
| | | | | | | | | | o Replace strncpy examples with less confusing ones from OpenBSD. These examples give more detail and also suggest using strlcpy(3). Reviewed by: des, ru, sheldonh Obtained from: OpenBSD MFC after: 3 days
* mdoc(7) police: expand plain text xrefs.ru2001-08-081-1/+2
|
* Only pull in the MD files if they exist. This allows for progressivemp2001-07-311-0/+2
| | | | implementation and compilation when bringing up a new architecture.
* Sync to OpenBSD (update comment and minor style change).kris2001-07-241-3/+4
| | | | | Obtained from: OpenBSD MFC after: 1 week
* Sync to OpenBSD:kris2001-07-241-2/+23
| | | | | | | | | | | | Clarify that if strlcat() does not find a NUL within siz byte it will not NUL terminate either. Document boundary condition when size < strlen(dst). "of", not "on" (from Henric Jungheim) Obtained from: OpenBSD MFC After: 1 week
* Don't claim that strncpy() is the same as strcpy().dd2001-07-191-6/+6
| | | | | PR: 29002 Submitted by: Joseph Mallett <jmallett@xMach.org>
* mdoc(7) police: Add strncpy() to the NAME section.ru2001-07-161-1/+1
|
* Remove whitespace at EOL.dd2001-07-157-10/+10
|
* style nitsobrien2001-07-101-2/+2
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-107-7/+7
|
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.obrien2001-05-2453-93/+223
| | | | Do the same for the non-wcs*/wmem* files while I'm here.
* ... but we do provide .St -isoC-99, and it is not required to have theru2001-05-171-5/+1
| | | | | | | | | | | history info as: : .Sh STANDARDS If the command, library function or file adheres to a : specific implementation such as IEEE Std 1003.2 : (``POSIX.2'') or ANSI X3.159-1989 (``ANSI C'') this : should be noted here. If the command does not adhere : to any standard, its history should be noted in the : HISTORY section.
* Unbreak world; _DIAGASSERT macro is not available in FreeBSD.ru2001-05-1621-57/+0
|
* adapt to FreeBSD.tshiozak2001-05-152-4/+20
| | | | | | | | | | - enable locale-insensitive functions of wchar.h: wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c XXX: wcswidth.c is not enabled yet. - enable wmemchr(3) man page. XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1.
* initial import of locale insensitive wcs* and wmem* functions.tshiozak2001-05-1522-0/+1484
| | | | Obtained from: NetBSD and Citrus.
* mdoc(7) police: add RETURN VALUES section.ru2001-05-141-8/+13
| | | | | PR: docs/27161 Submitted by: Kazuhiro KONDOU <k-fuji@za2.so-net.ne.jp>
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* .St -ansiC -> .St -isoCru2001-02-2621-21/+21
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-015-7/+9
|
* Clarify comments referring to strlcat() usagejedgar2001-01-171-1/+22
| | | | Obtained from: OpenBSD
* - Reverse the order of two loop invariant to ensure strlcat() does notjedgar2001-01-171-3/+6
| | | | | | | | | | attempt to read memory when siz is 0 - Clarify comments referring to strlcat() usage PR: 24278, 24295 Submitted by: Tony Finch <dot@dotat.at> Richard Kettlewell <rjk@greenend.org.uk> Reviewed by: -audit
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.ru2001-01-121-2/+2
|
* Prepare for mdoc(7)NG.ru2000-12-291-3/+3
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* MAXPATHNAMELEN -> MAXPATHLENkris2000-11-191-1/+1
| | | | | Submitted by: ianm@kashmir.cit.nepean.uws.edu.au via OpenBSD Obtained from: OpenBSD
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-172-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+1
|
* Add:ache2000-09-031-0/+3
| | | | The implementation will behave as if no library function calls strtok().
* Drop the references to index(3) and rindex(3), which are non-standardalex2000-07-189-18/+0
| | | | | | and people shouldn't be encouraged to use them. Asked by: sheldonh
* Add SEE ALSO section, as with the other string functions.alex2000-07-171-0/+11
| | | | Submitted by: dcs
* Introduce ".Lb" macro to libc manpages.phantom2000-04-2134-0/+68
| | | | More libraries manpages updates following.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-021-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Grammar: "be even number" -> "be an even number"billf2000-01-031-1/+1
|
* Backout the prev. commit. It's a bad idea to make-up terms. I believehoek1999-12-312-3/+3
| | | | | | there is no good solution here. Set-on-the-straight-and-narrow by: bde
* Add ".Xref tolower 3" since its internal use is inferred in DESCRIPTION.hoek1999-12-281-1/+2
|
* Avoid the potentially confusing term "a null pointer" and say "the NULLhoek1999-12-282-3/+3
| | | | | | | pointer" instead. The potential confusion arises because the string/*.3 pages use the term "null-terminated string" (which is permissable). Moreover, this also makes these two manpages more consistent with the other string/*.3 manpages.
* Remove x-ref to itself.billf1999-12-141-1/+0
| | | | Reviewed by: mpp
* Add HISTORY.obrien1999-10-291-0/+8
|
* Xref strlcat, strlcpyimp1999-09-282-2/+5
| | | | Inspired by: NetBSD commit message describing this.
* __collate_substitute() do something non-trivial only for German. For everyonedt1999-09-121-3/+10
| | | | | | | | else, it is equivalent to strdup(). So, we will check if the substitution tables are trivial at the load time, and possibly save 2 calls to __collate_substitute() in strcoll(). Still, __collate_substitute() should not exist.
* Add $FreeBSD$ lines to man pages that are missing them to makempp1999-08-281-0/+2
| | | | | | | it easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* $Id$ -> $FreeBSD$peter1999-08-2836-36/+36
|
OpenPOWER on IntegriCloud