.\" -*- 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 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:56:43 1993 by Rik Faith (faith@cs.unc.edu) .\" Added history, aeb, 980113. .\" 2005-05-05 mtk: added strcasestr() .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH strstr 3 "31 outubro 2023" "Linux man\-pages 6.06" .SH NOME strstr, strcasestr \- localiza uma subseqüencia .SH BIBLIOTECA Biblioteca C Padrão (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSE .nf \fB#include \fP .P \fBchar *strstr(const char *\fP\fIpalheiro\fP\fB, const char *\fP\fIagulha\fP\fB);\fP .P \fB#define _GNU_SOURCE\fP /* Veja feature_test_macros(7) */ \fB#include \fP .P \fBchar *strcasestr(const char *\fP\fIpalheiro\fP\fB, const char *\fP\fIagulha\fP\fB);\fP .fi .SH DESCRIÇÃO The \fBstrstr\fP() function finds the first occurrence of the substring \fIneedle\fP in the string \fIhaystack\fP. The terminating null bytes (\[aq]\e0\[aq]) are not compared. .P The \fBstrcasestr\fP() function is like \fBstrstr\fP(), but ignores the case of both arguments. .SH "VALOR DE RETORNO" These functions return a pointer to the beginning of the located substring, or NULL if the substring is not found. .P If \fIneedle\fP is the empty string, the return value is always \fIhaystack\fP itself. .SH ATRIBUTOS Para uma explicação dos termos usados nesta seção, consulte \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Atributo Valor T{ .na .nh \fBstrstr\fP() T} Thread safety MT\-Safe T{ .na .nh \fBstrcasestr\fP() T} Thread safety MT\-Safe locale .TE .SH PADRÕES .TP \fBstrstr\fP() C11, POSIX.1\-2008. .TP \fBstrcasestr\fP() GNU. .SH HISTÓRICO .TP \fBstrstr\fP() POSIX.1\-2001, C89. .TP \fBstrcasestr\fP() GNU. .SH "VEJA TAMBÉM" \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 TRADUÇÃO A tradução para português brasileiro desta página man foi criada por Marcelo M. de Abreu e André Luiz Fassone . .PP Esta tradução é uma documentação livre; leia a .UR https://www.gnu.org/licenses/gpl-3.0.html Licença Pública Geral GNU Versão 3 .UE ou posterior para as condições de direitos autorais. Nenhuma responsabilidade é aceita. .PP Se você encontrar algum erro na tradução desta página de manual, envie um e-mail para .MT debian-l10n-portuguese@lists.debian.org a lista de discussão de tradutores .ME .