DOKK / manpages / debian 11 / manpages-es-dev / strstr.3.es
STRSTR(3) Manual del Programador de Linux STRSTR(3)

strstr, strcasestr - localiza una subcadena

#include <string.h>
char *strstr(const char *haystack, const char *needle);
#define _GNU_SOURCE         /* Vea feature_test_macros(7) */
#include <string.h>
char *strcasestr(const char *haystack, const char *needle);

The strstr() function finds the first occurrence of the substring needle in the string haystack. The terminating null bytes ('\0') are not compared.

The strcasestr() function is like strstr(), but ignores the case of both arguments.

These functions return a pointer to the beginning of the located substring, or NULL if the substring is not found.

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
strstr() Seguridad del hilo Multi-hilo seguro
strcasestr() Seguridad del hilo Configuración regional de multi-hilo seguro

strstr(): POSIX.1-2001, POSIX.1-2008, C89, C99.

The strcasestr() function is a nonstandard extension.

index(3), memchr(3), memmem(3), rindex(3), strcasecmp(3), strchr(3), string(3), strpbrk(3), strsep(3), strspn(3), strtok(3), wcsstr(3)

Esta página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en https://www.kernel.org/doc/man-pages/.

La traducción al español de esta página del manual fue creada por Carlos Gomez Romero <cgomez@databasedm.es> y Juan Piernas <piernas@ditec.um.es>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org>..

6 Marzo 2019 GNU