Man page - clearerr(3)

Packages contains this manual

Available languages:

en fr pt_BR es pl ko ja ro zh_TW zh_CN de

Manual

ferror

이 름
라 이 브 러 리
μš” μ•½
μ„€ λͺ…
반 ν™˜ κ°’
에 러
속 μ„±
ν‘œ μ€€
이 λ ₯
주 의
CAVEATS
μΆ” κ°€ μ°Έ μ‘°
번 μ—­

이 름

clearerr, feof, ferror - 슀 트 λ¦Ό 상 νƒœ λ₯Ό κ²€ 사 ν•˜ κ³  리 μ…‹ ν•œ λ‹€ .

라 이 브 러 리

ν‘œ μ€€ C 라 이 브 러 리 ( libc , -lc )

μš” μ•½

#include <stdio.h>

void clearerr(FILE * stream );
int feof(FILE *
stream );
int ferror(FILE *
stream );

μ„€ λͺ…

함 수 clearerr () λŠ” EOFλ₯Ό μ§€ 우 κ³  stream 을 μœ„ ν•œ 에 러 μ§€ μ‹œ 자 λŠ” 슀 트 λ¦Ό 이 κ°€ 리 킨 λ‹€ .

함 순 feof () λŠ” stream 이 κ°€ 리 ν‚€ λŠ” 슀 트 λ¦Ό 을 μœ„ ν•œ EOF μ§€ μ‹œ 자 λ₯Ό κ²€ 사 ν•˜ κ³  , 만 일 μ„€ μ • 되 μ–΄ 있 λ‹€ λ©΄ 0이 μ•„ λ‹Œ κ°’ 을 반 ν™˜ ν•œ λ‹€ . EOF μ§€ μ‹œ 자 λŠ” clearerr ()함 수 에 의 ν•΄ μ„œ 만 μ§€ μ›Œ 질 수 있 λ‹€ .

함 수 ferror () λŠ” stream 이 κ°€ 리 ν‚€ λŠ” 슀 트 λ¦Ό 을 μœ„ ν•œ 에 러 μ§€ μ‹œ 자 λ₯Ό κ²€ 사 ν•˜ κ³  , 만 일 μ„€ μ • 되 μ–΄ 있 μ•„ λ©΄ 0이 μ•„ λ‹Œ κ°’ 을 반 ν™˜ ν•œ λ‹€ . 에 러 μ§€ μ‹œ 자 λŠ” clearerr () 함 수 에 의 ν•΄ μ„œ 만 리 μ…‹ 될 수 있 λ‹€ .

For nonlocking counterparts, see unlocked_stdio (3).

반 ν™˜ κ°’

The feof () function returns nonzero if the end-of-file indicator is set for stream ; otherwise, it returns zero.

The ferror () function returns nonzero if the error indicator is set for stream ; otherwise, it returns zero.

에 러

These functions should not fail and do not set errno .

속 μ„±

이 μ„Ή μ…˜ 에 μ„œ 사 용 되 λŠ” 용 μ–΄ 에 λŒ€ ν•œ μ„€ λͺ… 은 attributes (7)을 μ°Έ μ‘° ν•˜ μ‹­ μ‹œ 였 .

Image grohtml-4018044-1.png

ν‘œ μ€€

C11, POSIX.1-2008.

이 λ ₯

C89, POSIX.1-2001.

주 의

POSIX.1-2008 specifies that these functions shall not change the value of errno if stream is valid.

CAVEATS

Normally, programs should read the return value of an input function, such as fgetc (3), before using functions of the feof (3) family. Only when the function returned the sentinel value EOF it makes sense to distinguish between the end of a file or an error with feof (3) or ferror (3).

μΆ” κ°€ μ°Έ μ‘°

open (2), fdopen (3), fileno (3), stdio (3), unlocked_stdio (3)

번 μ—­

이 λ§€ 뉴 μ–Ό 페 이 μ§€ 의 ν•œ κ΅­ μ–΄ 번 μ—­ 은 λ‹€ 음 에 의 ν•΄ 편 μ§‘ 되 μ—ˆ 슡 λ‹ˆ λ‹€ : μ • κ°• ν›ˆ <skyeyes@soback.kornet.net>

이 번 μ—­ 은 무 료 λ¬Έ μ„œ μž… λ‹ˆ λ‹€ . μ € μž‘ ꢌ μ‘° 건 에 λŒ€ ν•΄ μ„œ λŠ” GNU General Public License 버 μ „ 3 이 상 을 읽 으 μ‹­ μ‹œ 였 . μ±… μž„ 이 μ—† 슡 λ‹ˆ λ‹€ .

이 λ§€ 뉴 μ–Ό 페 이 μ§€ 의 번 μ—­ 에 μ„œ 였 λ₯˜ λ₯Ό 발 견 ν•˜ λ©΄ translation-team-ko@googlegroups.com 둜 이 λ©” 일 을 보 λ‚΄ μ£Ό μ‹­ μ‹œ 였 .