aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/strstr.3
Commit message (Collapse)AuthorAgeFilesLines
* libc: Use C23 pseudo-types in qualifier-preserving man page synopsesFaraz Vahedi7 days1-8/+8
| | | | | | | Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2288
* libc: Implement qualifier-preserving standard library functionsFaraz Vahedi7 days1-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Several standard library functions are specified to return an unqualified pointer while accepting a pointer to a potentially const-qualified object. N3020 addresses this behaviour, discarding qualifiers due to incompatible pointer types, by introducing qualifier-preserving macros for the affected set of standard library functions. Add `__qualsel()` helper to `<sys/cdefs.h>`, implemented using the generic selection, and define qualifier-preserving macros for that set of functions in `<string.h>`, `<wchar.h>`, and `<stdlib.h>`. Macros are gated on `_STDC_VERSION__ >= 202311L && !__cplusplus`, therefore there is no behavioural change for earlier C modes or C++ translation units. The kernel is likewise unaffected, as it does not include userland headers. As function-like macros, they are transparent except at a call site where the address-of operator is applied, the macro is suppressed via `#undef`, or the identifier appears in parenthesised form; all of which cause the underlying function designator to be used instead. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2288
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Document strnstr()'s history.David E. O'Brien2023-08-221-0/+6
|
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Renumber clauses to reduce diffs to other versionsEd Maste2013-05-281-1/+1
| | | | | | | | NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier. Notes: svn path=/head/; revision=251069
* Add more locale-specific functions to the relevant man pages:Isabell Long2012-06-211-0/+10
| | | | | | | | | | | | | | - libc/string/strcoll.3 - libc/string/strstr.3 - libc/string/strxfrm.3 - libc/string/strcasecmp.3 Reviewed by: theraven, gabor Approved by: gabor (mentor) MFC after: 5 days Notes: svn path=/head/; revision=237393
* Add wide character variants of string manipulations routines to 'SEE ALSO'.Edward Tomasz Napierala2009-04-071-1/+2
| | | | | | | Approved by: rwatson (mentor) Notes: svn path=/head/; revision=190798
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Add the function memmem(3) as found in glibc and others.Andre Oppermann2005-08-251-0/+1
| | | | | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days Notes: svn path=/head/; revision=149466
* mdoc(7) police: minor markup and spelling fixes.Ruslan Ermilov2001-11-201-4/+7
| | | | Notes: svn path=/head/; revision=86658
* Clarify that strnstr() will stop searching after in encounters a NULMike Barcroft2001-10-111-5/+8
| | | | | | | character. Bump document date. Add a missing comma. Notes: svn path=/head/; revision=84808
* Implement strcasestr() which many others (f.e. Linux) already have.Andrey A. Chernov2001-10-101-1/+9
| | | | Notes: svn path=/head/; revision=84740
* Document the fact that the strnstr(3) function is not portable.Mike Barcroft2001-10-091-0/+5
| | | | | | | Requested by: brian, gad Notes: svn path=/head/; revision=84728
* Add a new libc function, strnstr(3), which allows one to limit theMike Barcroft2001-10-091-11/+50
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=84699
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-1/+1
| | | | Notes: svn path=/head/; revision=73088
* Drop the references to index(3) and rindex(3), which are non-standardAlexander Langer2000-07-181-2/+0
| | | | | | | | | and people shouldn't be encouraged to use them. Asked by: sheldonh Notes: svn path=/head/; revision=63397
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+88
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573