mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-09 20:46:07 +01:00
94 lines
2.9 KiB
HTML
94 lines
2.9 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|||
|
<html lang="ja">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
|
|||
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|||
|
<link rel="up" title="FatFs" href="../00index_j.html">
|
|||
|
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
|||
|
<title>FatFs - f_rename</title>
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h2>f_rename</h2>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD>̕ύX<CF8D>܂<EFBFBD><DC82>͈ړ<CD88><DA93>B</p>
|
|||
|
<pre>
|
|||
|
FRESULT f_rename (
|
|||
|
const XCHAR* <em>OldName</em>, /* <20>Â<EFBFBD><C382>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD> */
|
|||
|
const XCHAR* <em>NewName</em> /* <20>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD> */
|
|||
|
);
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<dl class="par">
|
|||
|
<dt>OldName</dt>
|
|||
|
<dd><EFBFBD>ύX<EFBFBD>Ώۂ̃I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g(<28>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67>)<29>ւ<EFBFBD><a href="filename.html"><EFBFBD>p<EFBFBD>X<EFBFBD><EFBFBD></a><EFBFBD>̓<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><tt>'\0'</tt><EFBFBD>ŏI<EFBFBD><EFBFBD><EFBFBD>镶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|||
|
<dt>NewName</dt>
|
|||
|
<dd><EFBFBD>V<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̃t<CC83><74><EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD>̓<EFBFBD><CC93><EFBFBD><EFBFBD><EFBFBD><tt>'\0'</tt><EFBFBD>ŏI<EFBFBD><EFBFBD><EFBFBD>镶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>ɑ<EFBFBD><C991>݂<EFBFBD><DD82>閼<EFBFBD>O<EFBFBD>͎g<CD8E><67><EFBFBD>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B<EFBFBD>܂<EFBFBD><DC82>A<EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD>ԍ<EFBFBD><D48D>͎w<CD8E><77><EFBFBD>ł<EFBFBD><C582><EFBFBD><EFBFBD>A<tt>OldName</tt><EFBFBD>Ŏw<EFBFBD>肳<EFBFBD>ꂽ<EFBFBD>h<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>u<EFBFBD><EFBFBD><EFBFBD>̃I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>Ƃ<EFBFBD><EFBFBD>Ĉ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<br>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
|
|||
|
<dl class="ret">
|
|||
|
<dt>FR_OK (0)</dt>
|
|||
|
<dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><EFBFBD><EFBFBD>B</dd>
|
|||
|
<dt>FR_NO_FILE</dt>
|
|||
|
<dd>OldName<EFBFBD>̃I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD>B</dd>
|
|||
|
<dt>FR_NO_PATH</dt>
|
|||
|
<dd><EFBFBD>p<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD>B</dd>
|
|||
|
<dt>FR_INVALID_NAME</dt>
|
|||
|
<dd><EFBFBD>p<EFBFBD>X<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>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><EFBFBD><EFBFBD><EFBFBD><C282><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>B</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓f<CD83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>ύX<CF8D><58><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>܂<EFBFBD><DC82>A<EFBFBD>ʂ̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>ւ̈ړ<CC88>(<28><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD><68><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD>̂<EFBFBD>)<29><><EFBFBD>\<5C>ł<EFBFBD><C582>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><tt>_FS_READONLY == 0</tt><EFBFBD>ŁA<EFBFBD><EFBFBD><EFBFBD><EFBFBD><tt>_FS_MINIMIZE == 0</tt><EFBFBD>̂Ƃ<EFBFBD><EFBFBD>Ɏg<EFBFBD>p<EFBFBD>\<5C>ł<EFBFBD><C582>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para">
|
|||
|
<h4><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD></h4>
|
|||
|
<pre>
|
|||
|
// <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓T<CD83>u<EFBFBD>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>ύX<CF8D><58><EFBFBD><EFBFBD>
|
|||
|
f_rename("oldname.txt", "newname.txt");
|
|||
|
|
|||
|
// <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>܂<EFBFBD><DC82>̓T<CD83>u<EFBFBD>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̖<EFBFBD><CC96>O<EFBFBD><4F><EFBFBD>ύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD>Ɠ<EFBFBD><C693><EFBFBD><EFBFBD>ɕʂ̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>ֈړ<D688><DA93><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
f_rename("oldname.txt", "dir1/newname.txt");
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
<p class="foot"><a href="../00index_j.html"><EFBFBD>߂<EFBFBD></a></p>
|
|||
|
</body>
|
|||
|
</html>
|