1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
6 <link rel=
"up" title=
"FatFs" href=
"../00index_e.html">
7 <link rel=
"alternate" hreflang=
"ja" title=
"Japanese" href=
"../ja/close.html">
8 <link rel=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
9 <title>FatFs - f_closedir
</title>
14 <div class=
"para func">
16 <p>The f_closedir function closes an open directory.
</p>
19 DIR*
<span class=
"arg">dp
</span> <span class=
"c">/* [IN] Pointer to the directory object */
</span>
24 <div class=
"para arg">
28 <dd>Pointer to the open directory object structure to be closed.
</dd>
33 <div class=
"para ret">
34 <h4>Return Values
</h4>
36 <a href=
"rc.html#ok">FR_OK
</a>,
37 <a href=
"rc.html#ie">FR_INT_ERR
</a>,
38 <a href=
"rc.html#io">FR_INVALID_OBJECT
</a>,
39 <a href=
"rc.html#tm">FR_TIMEOUT
</a>
44 <div class=
"para desc">
46 <p>The
<tt>f_closedir
</tt> function closes an open directory object. After the function succeeded, the directory object is no longer valid and it can be discarded.
</p>
47 <p>Note that the directory object can also be discarded without this procedure when option
<tt>FF_FS_LOCK
</tt> is not enabled. However this is not recommended for future compatibility.
</p>
51 <div class=
"para comp">
53 <p>Available when
<tt><a href=
"config.html#fs_minimize">FF_FS_MINIMIZE
</a> <=
1</tt>.
</p>
57 <div class=
"para ref">
59 <p><tt><a href=
"opendir.html">f_opendir
</a>,
<a href=
"readdir.html">f_readdir
</a>,
<a href=
"sdir.html">DIR
</a></tt></p>
62 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>