.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" 386BSD man pages .\" Modified Sat Jul 24 18:50:48 1993 by Rik Faith (faith@cs.unc.edu) .\" Interchanged 'needle' and 'haystack'; added history, aeb, 980113. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH memmem 3 "20 juillet 2023" "Pages du manuel de Linux 6.05.01" .SH NOM memmem \- Rechercher une sous\-chaîne .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP, \fI\-lc\fP) .SH SYNOPSIS .nf \fB#define _GNU_SOURCE\fP /* Consultez feature_test_macros(7) */ \fB#include \fP .PP \fBvoid *memmem(const void \fP\fIhaystack\fP\fB[.\fP\fIhaystacklen\fP\fB], size_t \fP\fIhaystacklen\fP\fB,\fP \fB const void \fP\fIneedle\fP\fB[.\fP\fIneedlelen\fP\fB], size_t \fP\fIneedlelen\fP\fB);\fP .fi .SH DESCRIPTION La fonction \fBmemmem\fP() recherche le début de la première occurrence de la sous\-chaîne \fIaiguille\fP de longueur \fItaille_de_l_aiguille\fP au sein de la zone mémoire de \fImeule_de_foin\fP de longueur \fItaille_de_la_meule\fP. .SH "VALEUR RENVOYÉE" La fonction \fBmemmem\fP() renvoie un pointeur sur le début de la sous\-chaîne, ou NULL si aucune sous\-chaîne n'est trouvée. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBmemmem\fP() T} Sécurité des threads MT\-Safe .TE .sp 1 .SH STANDARDS Aucun. .SH HISTORIQUE musl libc 0.9.7\ ; FreeBSD 6.0, OpenBSD 5.4, NetBSD, Illumos. .SH BOGUES .\" This function was broken in Linux libraries up to and including libc 5.0.9; .\" there the .\" .IR needle .\" and .\" .I haystack .\" arguments were interchanged, .\" and a pointer to the end of the first occurrence of .\" .I needle .\" was returned. .\" .\" Both old and new libc's have the bug that if .\" .I needle .\" is empty, .\" .I haystack\-1 .\" (instead of .\" .IR haystack ) .\" is returned. Dans la glibc 2.0, si \fIaiguille\fP est vide, \fBmemmem\fP() renvoie un pointeur sur le dernier octet de \fImeule_de_foin\fP. Ce bogue a été corrigé dans la glibc 2.1. .SH "VOIR AUSSI" \fBbstring\fP(3), \fBstrstr\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Frédéric Hantrais . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .