prdir.rst (622B)
1 PRDir 2 ===== 3 4 Directory structure used with `Directory I/O 5 Functions <I_O_Functions#Directory_I.2FO_Functions>`__. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prio.h> 14 15 typedef struct PRDir PRDir; 16 17 18 Description 19 ----------- 20 21 The opaque structure :ref:`PRDir` represents an open directory in the file 22 system. The function :ref:`PR_OpenDir` opens a specified directory and 23 returns a pointer to a :ref:`PRDir` structure, which can be passed to 24 :ref:`PR_ReadDir` repeatedly to obtain successive entries (files or 25 subdirectories in the open directory). To close the directory, pass the 26 :ref:`PRDir` pointer to :ref:`PR_CloseDir`.