FERROR

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (3)
Updated: 1993³â 11¿ù 29ÀÏ
Index
Return to Main Contents
 

À̸§

clearerr, feof, ferror, fileno - ½ºÆ®¸² »óŸ¦ °Ë»çÇÏ°í ¸®¼ÂÇÑ´Ù.  

»ç¿ë¹ý

#include <stdio.h>

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

¼³¸í

ÇÔ¼ö clearerr ´Â EOF¸¦ Áö¿ì°í streamÀ» À§ÇÑ ¿¡·¯ Áö½ÃÀÚ´Â ½ºÆ®¸²ÀÌ °¡¸®Å²´Ù.

ÇÔ¼ø feof ´Â streamÀÌ °¡¸®Å°´Â ½ºÆ®¸²À» À§ÇÑ EOF Áö½ÃÀÚ¸¦ °Ë»çÇÏ°í, ¸¸ÀÏ ¼³Á¤µÇ¾î ÀÖ´Ù¸é 0ÀÌ ¾Æ´Ñ °ªÀ» ¹ÝȯÇÑ´Ù. EOF Áö½ÃÀÚ´Â clearerrÇÔ¼ö¿¡ ÀÇÇؼ­¸¸ Áö¿öÁú¼ö ÀÖ´Ù.

ÇÔ¼ö ferror ´Â streamÀÌ °¡¸®Å°´Â ½ºÆ®¸²À» À§ÇÑ ¿¡·¯ Áö½ÃÀÚ¸¦ °Ë»çÇÏ°í, ¸¸ÀÏ ¼³Á¤µÇ¾î À־Ƹé 0ÀÌ ¾Æ´Ñ °ªÀ» ¹ÝȯÇÑ´Ù. ¿¡·¯ Áö½ÃÀÚ´Â clearerr ÇÔ¼ö¿¡ ÀÇÇؼ­¸¸ ¸®¼ÂµÉ¼ö ÀÖ´Ù.

ÇÔ¼ö fileno ´Â ÀÎÀÚ stream ¸¦ °Ë»çÇÏ°í ÇØ´ç Á¤¼öÇü ±â¼úÀÚ¸¦ ¹ÝȯÇÑ´Ù.  

¿¡·¯

À̵é ÇÔ¼ö´Â ½ÇÆÐÇؼ­´Â ¾ÈµÇ¸ç ¿ÜºÎ º¯¼ö errno ¸¦ ¼³Á¤ÇÏÁö ¾Ê´Â´Ù.  

ȣȯ

ÇÔ¼ö clearerr, feof, ±×¸®°í ferror ´Â X3.159-1989 (``ANSI C'') ȣȯÀÌ´Ù.  

°ü·Ã Ç׸ñ

open(2), stdio(3)  

¿ªÀÚ

Á¤°­ÈÆ <skyeyes@soback.kornet.net>, 2001³â 4¿ù 9ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¿¡·¯
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004