.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" and Copyright (C) 2021 Michael Kerrisk .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek and the American National Standards Committee X3, .\" on Information Processing Systems. .\" .\" SPDX-License-Identifier: BSD-4-Clause-UC .\" .\" @(#)ferror.3 6.8 (Berkeley) 6/29/91 .\" .\" .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ferror 3 "2023년 7월 20일" "Linux man\-pages 6.05.01" .SH 이름 clearerr, feof, ferror \- 스트림 상태를 검사하고 리셋한다. .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#include \fP .PP \fBvoid clearerr(FILE *\fP\fIstream\fP\fB);\fP \fBint feof(FILE *\fP\fIstream\fP\fB);\fP \fBint ferror(FILE *\fP\fIstream\fP\fB);\fP .fi .SH 설명 함수 \fBclearerr\fP() 는 EOF를 지우고 \fIstream\fP을 위한 에러 지시자는 스트림이 가리킨다. .PP 함순 \fBfeof\fP() 는 \fIstream\fP이 가리키는 스트림을 위한 EOF 지시자를 검사하고, 만일 설정되어 있다면 0이 아닌 값을 반환한다. EOF 지시자는 \fBclearerr\fP()함수에 의해서만 지워질수 있다. .PP 함수 \fBferror\fP() 는 \fIstream\fP이 가리키는 스트림을 위한 에러 지시자를 검사하고, 만일 설정되어 있아면 0이 아닌 값을 반환한다. 에러 지시자는 \fBclearerr\fP() 함수에 의해서만 리셋될수 있다. .PP For nonlocking counterparts, see \fBunlocked_stdio\fP(3). .SH 반환값 The \fBfeof\fP() function returns nonzero if the end\-of\-file indicator is set for \fIstream\fP; otherwise, it returns zero. .PP The \fBferror\fP() function returns nonzero if the error indicator is set for \fIstream\fP; otherwise, it returns zero. .SH 에러 These functions should not fail and do not set \fIerrno\fP. .SH 속성 이 섹션에서 사용되는 용어에 대한 설명은 \fBattributes\fP(7)을 참조하십시오. .TS allbox; lbx lb lb l l l. 상호 작용 속성 번호 T{ .na .nh \fBclearerr\fP(), \fBfeof\fP(), \fBferror\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 표준 C11, POSIX.1\-2008. .SH 이력 C89, POSIX.1\-2001. .SH 주의 .\"https://www.austingroupbugs.net/view.php?id=401 POSIX.1\-2008 specifies that these functions shall not change the value of \fIerrno\fP if \fIstream\fP is valid. .SH CAVEATS Normally, programs should read the return value of an input function, such as \fBfgetc\fP(3), before using functions of the \fBfeof\fP(3) family. Only when the function returned the sentinel value \fBEOF\fP it makes sense to distinguish between the end of a file or an error with \fBfeof\fP(3) or \fBferror\fP(3). .SH "추가 참조" \fBopen\fP(2), \fBfdopen\fP(3), \fBfileno\fP(3), \fBstdio\fP(3), \fBunlocked_stdio\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 로 이메일을 보내주십시오.