130 lines
5.9 KiB
HTML
130 lines
5.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="alternate" hreflang="en" title="English" href="../en/lseek.html">
|
|||
|
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
|
|||
|
<title>FatFs - f_lseek</title>
|
|||
|
</head>
|
|||
|
|
|||
|
<body>
|
|||
|
|
|||
|
<div class="para func">
|
|||
|
<h2>f_lseek</h2>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃<EFBFBD><CC83>[<5B>h/<2F><><EFBFBD>C<EFBFBD>g<EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>܂<EFBFBD><DC82>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>@<40>\<5C>g<EFBFBD>p<EFBFBD><70><EFBFBD>ɂ<EFBFBD>CLMT(<28><><EFBFBD>q)<29>̍쐬<CC8D>ɂ<EFBFBD><C982>g<EFBFBD>p<EFBFBD><70><EFBFBD>܂<EFBFBD><DC82>B</p>
|
|||
|
<pre>
|
|||
|
FRESULT f_lseek (
|
|||
|
FIL* <span class="arg">fp</span>, <span class="c">/* [IN] <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^ */</span>
|
|||
|
DWORD <span class="arg">ofs</span> <span class="c">/* [IN] <20>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>I<EFBFBD>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g */</span>
|
|||
|
);
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="para arg">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<dl class="par">
|
|||
|
<dt>fp</dt>
|
|||
|
<dd><EFBFBD>ΏۂƂȂ<EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD>肵<EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|||
|
<dt>ofs</dt>
|
|||
|
<dd><EFBFBD>ړ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃I<EFBFBD>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g(<28><><EFBFBD>[<5B>h/<2F><><EFBFBD>C<EFBFBD>g<EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^)<29>l<EFBFBD>B<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>擪<EFBFBD><E693AA><EFBFBD><EFBFBD><EFBFBD>̃I<CC83>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>o<EFBFBD>C<EFBFBD>g<EFBFBD>P<EFBFBD>ʂŎw<C58E>肵<EFBFBD>܂<EFBFBD><DC82>B</dd>
|
|||
|
</dl>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para ret">
|
|||
|
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
|
|||
|
<p>
|
|||
|
<a href="rc.html#ok">FR_OK</a>,
|
|||
|
<a href="rc.html#de">FR_DISK_ERR</a>,
|
|||
|
<a href="rc.html#ie">FR_INT_ERR</a>,
|
|||
|
<a href="rc.html#nr">FR_NOT_READY</a>,
|
|||
|
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
|
|||
|
<a href="rc.html#tm">FR_TIMEOUT</a>,
|
|||
|
<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para desc">
|
|||
|
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̃<EFBFBD><CC83>[<5B>h/<2F><><EFBFBD>C<EFBFBD>g<EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^(<28><><EFBFBD>ɓǂݏo<DD8F><6F><EFBFBD>E<EFBFBD><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>C<EFBFBD>g<EFBFBD>̃I<CC83>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g)<29><><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>I<EFBFBD>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD>̌<EFBFBD><CC8C>_<EFBFBD>̓t<CD83>@<40>C<EFBFBD><43><EFBFBD>擪<EFBFBD>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݃<EFBFBD><DD83>[<5B>h<EFBFBD>Ńt<C583>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD><EFBFBD><EFBFBD>傫<EFBFBD>Ȓl<C892><6C><EFBFBD>w<EFBFBD>肷<EFBFBD><E882B7><EFBFBD>ƁA<C681><41><EFBFBD><EFBFBD><EFBFBD>܂Ńt<C583>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD><EA82BD><EFBFBD><EFBFBD><EFBFBD>̃f<CC83>[<5B>^<5E>͖<EFBFBD><CD96><EFBFBD><EFBFBD>`<60>ƂȂ<C682><C882>܂<EFBFBD><DC82>B<EFBFBD>f<EFBFBD>[<5B>^<5E><><EFBFBD>x<EFBFBD><78><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݂<EFBFBD><DD82><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́A<CD81>\<5C>߂<EFBFBD><DF82>̊<CC8A><D690>ŕK<C595>v<EFBFBD>ȃT<C883>C<EFBFBD>Y<EFBFBD>܂Ńt<C583>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><59><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ɨǂ<C697><C782>ł<EFBFBD><C582>傤<EFBFBD>B<tt>f_lseek()</tt><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ́A<EFBFBD><EFBFBD><EFBFBD>[<5B>h/<2F><><EFBFBD>C<EFBFBD>g<EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>`<60>F<EFBFBD>b<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>ׂ<EFBFBD><D782>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD>[<5B>h/<2F><><EFBFBD>C<EFBFBD>g<EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>菬<EFBFBD><E88FAC><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́A<CD81><41><EFBFBD>̌<EFBFBD><CC8C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</p>
|
|||
|
<ul>
|
|||
|
<li><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>݃<EFBFBD><EFBFBD>[<5B>h<EFBFBD>܂<EFBFBD><DC82>͍<EFBFBD><CD8D><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>E<EFBFBD><45><EFBFBD>[<5B>h<EFBFBD>̂<EFBFBD><CC82>߁A<DF81>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD>ŃN<C583><4E><EFBFBD>b<EFBFBD>v<EFBFBD><76><EFBFBD>ꂽ<EFBFBD>B</li>
|
|||
|
<li><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƀf<C983>B<EFBFBD>X<EFBFBD>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>ɂȂ<C982><C882><EFBFBD><EFBFBD>B</li>
|
|||
|
</ul>
|
|||
|
<p><tt>_USE_FASTSEEK</tt><EFBFBD><EFBFBD>1<EFBFBD>ŁA<EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD><67><tt>cltbl</tt><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD><EFBFBD>NULL<EFBFBD>ȊO(<tt>f_open()</tt><EFBFBD><EFBFBD>NULL<EFBFBD>ɐݒ肳<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29>̂Ƃ<CC82><C682>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>E<EFBFBD><45><EFBFBD>[<5B>h<EFBFBD>ɂȂ<C982><C882>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>̓t<CD83>@<40>C<EFBFBD><43><EFBFBD>̃N<CC83><4E><EFBFBD>X<EFBFBD>^<5E>z<EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD>(CLMT)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɕێ<C995><DB8E><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃɂ<C682><C982><EFBFBD><EFBFBD>AFAT<41>ɃA<C983>N<EFBFBD>Z<EFBFBD>X<EFBFBD><58><EFBFBD>邱<EFBFBD>ƂȂ<C682><C882><EFBFBD><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD><EFBFBD><E2838D><EFBFBD>O<EFBFBD>E<EFBFBD>V<EFBFBD>[<5B>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɍs<C98D><73><EFBFBD>@<40>\<5C>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>E<EFBFBD><45><EFBFBD>[<5B>h<EFBFBD>́A<tt>f_read()/f_wtite()</tt><EFBFBD>̓<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><EFBFBD>K<EFBFBD>p<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>E<EFBFBD><45><EFBFBD>[<5B>h<EFBFBD>ł<EFBFBD><tt>f_wtite()/f_lseek()</tt><EFBFBD>ɂ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD>̊g<CC8A><67><EFBFBD>͂ł<CD82><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B</p>
|
|||
|
<p><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>O<EFBFBD>ɁACLMT<4D><54><EFBFBD>쐬<EFBFBD><EC90AC><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>쐬<EFBFBD><EC90AC><EFBFBD><EFBFBD><EFBFBD>ɂ́A<CD81>܂<EFBFBD>CLMT<4D>i<EFBFBD>[<5B>o<EFBFBD>b<EFBFBD>t<EFBFBD>@(<tt>DWORD</tt><EFBFBD>^<5E>z<EFBFBD><7A>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<tt>cltbl</tt><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>ɂ<EFBFBD><EFBFBD>̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD>āA<C481>z<EFBFBD><7A><EFBFBD>̐擪<CC90>v<EFBFBD>f<EFBFBD>ɂ<EFBFBD><C982>̔z<CC94><7A><EFBFBD>̃T<CC83>C<EFBFBD>Y(<28>v<EFBFBD>f<EFBFBD><66>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<tt>f_lseek()</tt><EFBFBD><EFBFBD><tt class="arg">ofs</tt><EFBFBD><EFBFBD><tt>CREATE_LINKMAP</tt><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD>肵<EFBFBD>ČĂяo<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CLMT<EFBFBD><EFBFBD><EFBFBD>쐬<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>ȍ~<7E><><tt>f_read()/f_write()/f_lseek()</tt><EFBFBD>ł<EFBFBD>FAT<EFBFBD>ւ̃A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD>͔<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<tt>FR_NOT_ENOUGH_CORE</tt><EFBFBD>Ŏ<EFBFBD><EFBFBD>s<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><EFBFBD>͔z<EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>C<EFBFBD>Y<EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><EFBFBD><EFBFBD>ŁA<EFBFBD>擪<EFBFBD>v<EFBFBD>f<EFBFBD>ɂ͎<EFBFBD><EFBFBD>ۂɕK<EFBFBD>v<EFBFBD>ƂȂ<EFBFBD><EFBFBD>v<EFBFBD>f<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<EFBFBD>K<EFBFBD>v<EFBFBD>ȗv<EFBFBD>f<EFBFBD><EFBFBD><EFBFBD>́A(<28>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD> + 1) * 2 <20>ł<EFBFBD><C582>B<EFBFBD><42><EFBFBD>Ƃ<EFBFBD><C682>A<CE81>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD>5<EFBFBD>̃t<CC83><74><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD>ɕ<EFBFBD><C995>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ɕK<C995>v<EFBFBD>ȗv<C897>f<EFBFBD><66><EFBFBD>́A12<31>ƂȂ<C682><C882>܂<EFBFBD><DC82>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para comp">
|
|||
|
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
|
|||
|
<p><tt>_FS_MINIMIZE < 3</tt><EFBFBD>̂Ƃ<EFBFBD><EFBFBD>g<EFBFBD>p<EFBFBD>\<5C>ł<EFBFBD><C582>B</p>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para use">
|
|||
|
<h4><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD></h4>
|
|||
|
<pre>
|
|||
|
<span class="c">/* <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><4A> */</span>
|
|||
|
fp = malloc(sizeof (FIL));
|
|||
|
res = f_open(fp, "file.dat", FA_READ|FA_WRITE);
|
|||
|
if (res) ...
|
|||
|
|
|||
|
<span class="c">/* <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>E<EFBFBD>I<EFBFBD>t<EFBFBD>Z<EFBFBD>b<EFBFBD>g5000<30>ֈړ<D688> */</span>
|
|||
|
res = f_lseek(fp, 5000);
|
|||
|
|
|||
|
<span class="c">/* <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>I<EFBFBD>[<5B>ֈړ<D688>(<28>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>NjL<C78B>̏<EFBFBD><CC8F><EFBFBD>) */</span>
|
|||
|
res = f_lseek(fp, f_size(fp));
|
|||
|
|
|||
|
<span class="c">/* 3000<30>o<EFBFBD>C<EFBFBD>g<EFBFBD>i<EFBFBD>߂<EFBFBD> */</span>
|
|||
|
res = f_lseek(fp, f_tell(fp) + 3000);
|
|||
|
|
|||
|
<span class="c">/* 2000<30>o<EFBFBD>C<EFBFBD>g<EFBFBD>߂<EFBFBD> (<28><><EFBFBD>b<EFBFBD>v<EFBFBD>A<EFBFBD><41><EFBFBD>E<EFBFBD><45><EFBFBD>h<EFBFBD>ɒ<EFBFBD><C992><EFBFBD>) */</span>
|
|||
|
res = f_lseek(fp, f_tell(fp) - 2000);
|
|||
|
</pre>
|
|||
|
<pre>
|
|||
|
<span class="c">/* <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>s<EFBFBD><73><EFBFBD>蓖<EFBFBD><E89396> (<28>X<EFBFBD>g<EFBFBD><67><EFBFBD>[<5B>~<7E><><EFBFBD>O<EFBFBD>E<EFBFBD><45><EFBFBD>C<EFBFBD>g<EFBFBD><67><EFBFBD>̃o<CC83>b<EFBFBD>t<EFBFBD>@<40>E<EFBFBD>I<EFBFBD>[<5B>o<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>h<EFBFBD>~) */</span>
|
|||
|
|
|||
|
res = f_open(fp, "record.wav", FA_CREATE_NEW | FA_WRITE); <span class="c">/* <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>쐬 */</span>
|
|||
|
|
|||
|
res = f_lseek(fp, MAX_SIZE); <span class="c">/* <20>\<5C><><EFBFBD>ȃN<C883><4E><EFBFBD>X<EFBFBD>^<5E>̐<EFBFBD><CC90>s<EFBFBD><73><EFBFBD>蓖<EFBFBD><E89396> */</span>
|
|||
|
if (res || f_tell(fp) != PRE_SIZE) ... <span class="c">/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD><EA82BD><EFBFBD>`<60>F<EFBFBD>b<EFBFBD>N */</span>
|
|||
|
|
|||
|
res = f_lseek(fp, DATA_START); <span class="c">/* <20>f<EFBFBD>[<5B>^<5E>E<EFBFBD>X<EFBFBD>g<EFBFBD><67><EFBFBD>[<5B><><EFBFBD>̋L<CC8B>^(<28>A<EFBFBD><41><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>B<EFBFBD><42><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD>) */</span>
|
|||
|
...
|
|||
|
|
|||
|
res = f_truncate(fp); <span class="c">/* <20>s<EFBFBD>v<EFBFBD>̈<EFBFBD><CC88>̐<CC90><D882>̂<EFBFBD> */</span>
|
|||
|
res = f_lseek(fp, 0); <span class="c">/* <20>w<EFBFBD>b<EFBFBD>_<EFBFBD>̋L<CC8B>^ */</span>
|
|||
|
...
|
|||
|
|
|||
|
res = f_close(fp);
|
|||
|
</pre>
|
|||
|
<pre>
|
|||
|
<span class="c">/* <20><><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>@<40>\<5C><><EFBFBD>g<EFBFBD><67> */</span>
|
|||
|
|
|||
|
DWORD clmt[SZ_TBL]; <span class="c">/* <20><><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>E<EFBFBD>}<7D>b<EFBFBD>v<EFBFBD>E<EFBFBD>e<EFBFBD>[<5B>u<EFBFBD><75><EFBFBD>i<EFBFBD>[<5B>o<EFBFBD>b<EFBFBD>t<EFBFBD>@ */</span>
|
|||
|
|
|||
|
res = f_lseek(fp, ofs1); <span class="c">/* <20>ʏ<EFBFBD><CA8F>V<EFBFBD>[<5B>N (<28>I<EFBFBD>[<5B>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD>Acltbl<62><6C>NULL<4C>ɏ<EFBFBD><C98F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) */</span>
|
|||
|
|
|||
|
fp->cltbl = clmt; <span class="c">/* <20><><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>[<5B>N<EFBFBD>@<40>\<5C>̗L<CC97><4C><EFBFBD><EFBFBD> */</span>
|
|||
|
clmt[0] = SZ_TBL; <span class="c">/* <20>擪<EFBFBD>v<EFBFBD>f<EFBFBD>ɔz<C994><7A><EFBFBD>v<EFBFBD>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD>Z<EFBFBD>b<EFBFBD>g */</span>
|
|||
|
res = f_lseek(fp, CREATE_LINKMAP); <span class="c">/* CLMT<4D>̍쐬 */</span>
|
|||
|
...
|
|||
|
|
|||
|
res = f_lseek(fp, ofs2); <span class="c">/* <20>ȍ~<7E>Af_read/f_write/f_lseek<65><6B>FAT<41>A<EFBFBD>N<EFBFBD>Z<EFBFBD>X<EFBFBD>͔<EFBFBD><CD94><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȃ<EFBFBD> */</span>
|
|||
|
</pre>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<div class="para ref">
|
|||
|
<h4><EFBFBD>Q<EFBFBD><EFBFBD></h4>
|
|||
|
<p><tt><a href="open.html">f_open</a>, <a href="sfile.html">FIL</a></tt></p>
|
|||
|
</div>
|
|||
|
|
|||
|
<p class="foot"><a href="../00index_j.html"><EFBFBD>߂<EFBFBD></a></p>
|
|||
|
</body>
|
|||
|
</html>
|