table of contents
- Tumbleweed 4.28.0-1.1
- Leap-16.0
- Leap-15.6
| memmem(3) | Library Functions Manual | memmem(3) |
NOM¶
memmem - Rechercher une sous-chaîne
BIBLIOTHÈQUE¶
Bibliothèque C standard (libc, -lc)
SYNOPSIS¶
#define _GNU_SOURCE /* Consultez feature_test_macros(7) */ #include <string.h>
void *memmem(size_t hsize, size_t nsize;
const void haystack[hsize], size_t hsize,
const void needle[nsize], size_t nsize);
DESCRIPTION¶
The memmem() function finds the start of the first occurrence of the substring needle of size nsize in the memory area haystack of size hsize.
VALEUR RENVOYÉE¶
La fonction memmem() renvoie un pointeur sur le début de la sous-chaîne, ou NULL si aucune sous-chaîne n'est trouvée.
ATTRIBUTS¶
Pour une explication des termes utilisés dans cette section, consulter attributes(7).
| Interface | Attribut | Valeur |
| memmem() | Sécurité des threads | MT-Safe |
STANDARDS¶
Aucun.
HISTORIQUE¶
musl libc 0.9.7 ; FreeBSD 6.0, OpenBSD 5.4, NetBSD, Illumos.
BOGUES¶
Dans la glibc 2.0, si aiguille est vide, memmem() renvoie un pointeur sur le dernier octet de meule_de_foin. Ce bogue a été corrigé dans la glibc 2.1.
VOIR AUSSI¶
TRADUCTION¶
La traduction française de cette page de manuel a été créée par Christophe Blaess <https://www.blaess.fr/christophe/>, Stéphan Rafin <stephan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, François Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard <fevrier@tigreraye.org>, Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>, Julien Cristau <jcristau@debian.org>, Thomas Huriaux <thomas.huriaux@gmail.com>, Nicolas François <nicolas.francois@centraliens.net>, Florentin Duneau <fduneau@gmail.com>, Simon Paillard <simon.paillard@resel.enst-bretagne.fr>, Denis Barbier <barbier@debian.org>, David Prévot <david@tilapin.org> et Frédéric Hantrais <fhantrais@gmail.com>
Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.
Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à debian-l10n-french@lists.debian.org.
| 28 juin 2025 | Pages du manuel de Linux (non publiées) |