READDIR

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

À̸§

readdir - µð·ºÅ丮¸¦ Àд٠ 

»ç¿ë¹ý

#include <sys/types.h>

#include <dirent.h>

struct dirent *readdir(DIR *dir);
 

¼³¸í

readdir() ÇÔ¼ö´Â dirÀÌ °¡¸®Å°´Â µð·ºÅ丮 ±â¼úÀÚÀÇ ´ÙÀ½ µð·ºÅ丮 Ç׸ñÀ» ³ªÅ¸³»´Â dirent ±¸Á¶Ã¼¸¦ ¹ÝȯÇÑ´Ù. ÆÄÀÏ ³¡¿¡ µµ´ÞÇϰųª ¿¡·¯°¡ ¹ß»ýÇϸé NULLÀ» ¹ÝȯÇÑ´Ù.

readdir()¿¡ ÀÇÇØ ¹ÝȯµÇ´Â µ¥ÀÌÅÍ´Â °°Àº µð·ºÅ丮 ½ºÆ®¸²¿¡ ´ëÇÑ ´ÙÀ½ÀÇ readdir() È£Ãâ¿¡ ÀÇÇØ µ¤¾î ¾²¿©Áø´Ù.

POSIX¿¡ µû¸£¸é, dirent ±¸Á¶Ã¼´Â ÁöÁ¤µÇÁö ¾ÊÀº Å©±âÀÇ char d_name[] Çʵ带 Æ÷ÇÔÇÑ´Ù. ÃÖ´ë ±æÀÌ´Â Á¾·á NULL ¹®ÀÚ¸¦ Á¦¿ÜÇÏ°í NAME_MAXÀÌ´Ù. ´Ù¸¥ Çʵ带 »ç¿ëÇÏ´Â °ÍÀº ÇÁ·Î±×·¥ÀÇ À̽ļºÀ» ¶³¾îÆ®¸± °ÍÀÌ´Ù.  

¹Ýȯ°ª

readdir() ÇÔ¼ö´Â dirent ±¸Á¶Ã¼ÀÇ Æ÷ÀÎÅ͸¦, ¶Ç´Â ¿¡·¯°¡ ¹ß»ýÇϰųª ÆÄÀÏ ³¡¿¡ µµ´ÞÇϸé NULLÀ» ¹ÝȯÇÑ´Ù.  

¿¡·¯

EBADF
¹«È¿ÇÑ µð·ºÅ丮 ½ºÆ®¸² ±â¼úÀÚ dir
 

ȣȯ

SVID 3, POSIX, BSD 4.3  

°ü·Ã Ç׸ñ

read(2), opendir(3), closedir(3), rewinddir(3), seekdir(3), telldir(3), scandir(3)  

¿ªÀÚ

ÀÓÁ¾±Õ <hermes44@secsm.org>, 2001³â 6¿ù 28ÀÏ


 

Index

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

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