.\" -*- 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 "20 июля 2023 г." "Linux man\-pages 6.05.01" .SH ИМЯ strstr, strcasestr \- поиск подстроки .SH LIBRARY Standard C library (\fIlibc\fP, \fI\-lc\fP) .SH СИНТАКСИС .nf \fB#include \fP .PP \fBchar *strstr(const char *\fP\fIhaystack\fP\fB, const char *\fP\fIneedle\fP\fB);\fP .PP \fB#define _GNU_SOURCE\fP /* см. feature_test_macros(7) */ \fB#include \fP .PP \fBchar *strcasestr(const char *\fP\fIhaystack\fP\fB, const char *\fP\fIneedle\fP\fB);\fP .fi .SH ОПИСАНИЕ 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. .PP \fBstrcasestr\fP() аналогична \fBstrstr\fP(), но при этом игнорируется регистр обеих строк. .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" Данные функции возвращают указатель на начало найденной подстроки или NULL, если подстрока не найдена. .PP If \fIneedle\fP is the empty string, the return value is always \fIhaystack\fP itself. .SH АТРИБУТЫ Описание терминов данного раздела смотрите в \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Интерфейс Атрибут Значение T{ .na .nh \fBstrstr\fP() T} Безвредность в нитях MT\-Safe T{ .na .nh \fBstrcasestr\fP() T} Безвредность в нитях MT\-Safe locale .TE .sp 1 .SH СТАНДАРТЫ .TP \fBstrstr\fP() C11, POSIX.1\-2008. .TP \fBstrcasestr\fP() GNU. .SH ИСТОРИЯ .TP \fBstrstr\fP() POSIX.1\-2001, C89. .TP \fBstrcasestr\fP() GNU. .SH "СМ. ТАКЖЕ" \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 ПЕРЕВОД Русский перевод этой страницы руководства был сделан Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov и Иван Павлов . .PP Этот перевод является бесплатной документацией; прочитайте .UR https://www.gnu.org/licenses/gpl-3.0.html Стандартную общественную лицензию GNU версии 3 .UE или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ. .PP Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на .MT man-pages-ru-talks@lists.sourceforge.net .ME .