.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, David Metcalfe .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH strstr 3 "25 Febrero 2026" "Linux man\-pages 6.18" .SH NOMBRE strstr, strcasestr \- localiza una subcadena .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP,\ \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBchar *strstr(const char *\fP\fIpajar\fP\fB, const char *\fP\fIaguja\fP\fB);\fP .P \fB#define _GNU_SOURCE\fP /* Vea feature_test_macros(7) */ \fB#include \fP .P \fBchar *strcasestr(const char *\fP\fIpajar\fP\fB, const char *\fP\fIaguja\fP\fB);\fP .fi .SH DESCRIPCIÓN The \fBstrstr\fP() function finds the first occurrence of the substring \fIneedle\fP in the string \fIhaystack\fP. The terminating null bytes (\[aq]\[rs]0\[aq]) are not compared. .P It is equivalent to .P .in +4n .EX memmem(haystack, strlen(haystack), needle, strlen(needle)) .EE .in .P The \fBstrcasestr\fP() function is like \fBstrstr\fP(), but ignores the case of both arguments. .SH "VALOR DEVUELTO" Estas funciones devuelven un puntero al comienzo de la subcadena o NULL si la subcadena no se encuentra. .P If \fIneedle\fP is the empty string, the return value is always \fIhaystack\fP itself. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBstrstr\fP() T} Seguridad del hilo Multi\-hilo seguro T{ .na .nh \fBstrcasestr\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .SH ESTÁNDARES .TP \fBstrstr\fP() C11, POSIX.1\-2008. .TP \fBstrcasestr\fP() GNU. .SH HISTORIAL .TP \fBstrstr\fP() POSIX.1\-2001, C89. .TP \fBstrcasestr\fP() GNU. .SH "VÉASE TAMBIÉN" \fBmemchr\fP(3), \fBmemmem\fP(3), \fBstrcasecmp\fP(3), \fBstrchr\fP(3), \fBstring\fP(3), \fBstrpbrk\fP(3), \fBstrsep\fP(3), \fBstrspn\fP(3), \fBstrtok\fP(3), \fBwcsstr\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Carlos Gomez Romero , Juan Piernas y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .