.\" -*- 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 .\" 386BSD man pages .\" Modified Sat Jul 24 18:50:48 1993 by Rik Faith (faith@cs.unc.edu) .\" Interchanged 'needle' and 'haystack'; added history, aeb, 980113. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH memmem 3 "2023년 7월 20일" "Linux man\-pages 6.05.01" .SH 이름 memmem \- substring의 위치를 알아낸다. .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#define _GNU_SOURCE\fP /* See feature_test_macros(7) */ \fB#include \fP .PP \fBvoid *memmem(const void \fP\fIhaystack\fP\fB[.\fP\fIhaystacklen\fP\fB], size_t \fP\fIhaystacklen\fP\fB,\fP \fB const void \fP\fIneedle\fP\fB[.\fP\fIneedlelen\fP\fB], size_t \fP\fIneedlelen\fP\fB);\fP .fi .SH 설명 \fBmemmem\fP() 함수는 길이가 \fIhaystacklen\fP인 메모리 영역 \fIhaystack\fP에서 길이가 \fIneedlelen\fP인 substring \fIneedle\fP의 처음 발생한 시작 위치를 찾는다. .SH 반환값 \fBmemmem\fP() 함수는 substring의 시작 포이터를 반환하거나 substring이 발견되지 않는다면 NULL을 반환한다. .SH 속성 이 섹션에서 사용되는 용어에 대한 설명은 \fBattributes\fP(7)을 참조하십시오. .TS allbox; lbx lb lb l l l. 상호 작용 속성 번호 T{ .na .nh \fBmemmem\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 표준 None. .SH 이력 musl libc 0.9.7; FreeBSD 6.0, OpenBSD 5.4, NetBSD, Illumos. .SH 버그 .\" This function was broken in Linux libraries up to and including libc 5.0.9; .\" there the .\" .IR needle .\" and .\" .I haystack .\" arguments were interchanged, .\" and a pointer to the end of the first occurrence of .\" .I needle .\" was returned. .\" .\" Both old and new libc's have the bug that if .\" .I needle .\" is empty, .\" .I haystack\-1 .\" (instead of .\" .IR haystack ) .\" is returned. In glibc 2.0, if \fIneedle\fP is empty, \fBmemmem\fP() returns a pointer to the last byte of \fIhaystack\fP. This is fixed in glibc 2.1. .SH "추가 참조" \fBbstring\fP(3), \fBstrstr\fP(3) .PP .SH 번역 이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 정강훈 . .PP 이 번역은 무료 문서입니다. 저작권 조건에 대해서는 .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 버전 3 .UE 이상을 읽으십시오. 책임이 없습니다. .PP 이 매뉴얼 페이지의 번역에서 오류를 발견하면 .MT translation-team-ko@googlegroups.com .ME 로 이메일을 보내주십시오.