strstr(3) Library Functions Manual strstr(3) NOMBRE strstr, strcasestr - localiza una subcadena BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include char *strstr(const char *pajar, const char *aguja); #define _GNU_SOURCE /* Vea feature_test_macros(7) */ #include char *strcasestr(const char *pajar, const char *aguja); DESCRIPCION 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. VALOR DEVUELTO Estas funciones devuelven un puntero al comienzo de la subcadena o NULL si la subcadena no se encuentra. If needle is the empty string, the return value is always haystack itself. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-------------+--------------------+-----------------------------------------------+ |Interfaz | Atributo | Valor | +-------------+--------------------+-----------------------------------------------+ |strstr() | Seguridad del hilo | Multi-hilo seguro | +-------------+--------------------+-----------------------------------------------+ |strcasestr() | Seguridad del hilo | Configuracion regional de multi-hilo seguro | +-------------+--------------------+-----------------------------------------------+ ESTANDARES strstr() C11, POSIX.1-2008. strcasestr() GNU. HISTORIAL strstr() POSIX.1-2001, C89. strcasestr() GNU. VEASE TAMBIEN memchr(3), memmem(3), strcasecmp(3), strchr(3), string(3), strpbrk(3), strsep(3), strspn(3), strtok(3), wcsstr(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Carlos Gomez Romero , Juan Piernas y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de Manual de Linux 6.9.1 15 Junio 2024 strstr(3)