fatfs v0.08b Jan 15,2011:
- Fast seek feature is also applied to f_read() and f_write(). - f_lseek() reports required table size on creating CLMP. - Extended format syntax of f_printf function. - Ignores duplicated directory separators in given path names.
This commit is contained in:
1 parent
625f3adcbb
commit
5fa1073a5a
98 files changed
+2819
-2235
No files matched your search
+9
-9
@@ -11,19 +11,19 @@
|
||||
|
||||
<body>
|
||||
|
||||
<div class="para">
|
||||
<div class="para func">
|
||||
<h2>f_gets</h2>
|
||||
<p>ファイルから文字列を読み出します。</p>
|
||||
<pre>
|
||||
TCHAR* f_gets (
|
||||
TCHAR* <em>Str</em>, <span>/* バッファ */</span>
|
||||
int <em>Size</em>, <span>/* バッファのサイズ */</span>
|
||||
FIL* <em>FileObject</em> <span>/* ファイル・オブジェクト */</span>
|
||||
TCHAR* <em>Str</em>, <span class="c">/* バッファ */</span>
|
||||
int <em>Size</em>, <span class="c">/* バッファのサイズ */</span>
|
||||
FIL* <em>FileObject</em> <span class="c">/* ファイル・オブジェクト */</span>
|
||||
);
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="para">
|
||||
<div class="para arg">
|
||||
<h4>引数</h4>
|
||||
<dl class="par">
|
||||
<dt>Str</dt>
|
||||
@@ -36,26 +36,26 @@ TCHAR* f_gets (
|
||||
</div>
|
||||
|
||||
|
||||
<div class="para">
|
||||
<div class="para ret">
|
||||
<h4>戻り値</h4>
|
||||
<p>関数が成功すると<tt>Str</tt>が返されます。</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="para">
|
||||
<div class="para desc">
|
||||
<h4>解説</h4>
|
||||
<p>この関数は<a href="read.html">f_read()</a>のラッパー関数です。読み出し動作は、最初の<tt>'\n'</tt>を読み込むか、ファイル終端に達するか、<tt>Size - 1</tt>文字を読み出すまで続きます。読み込まれた文字列の終端には<tt>'\0'</tt>が付加されます。既にファイル終端で1文字も読み込まれなかったとき、または何らかのエラーが発生したときは関数は失敗しヌル・ポインタを返します。ファイル終端かエラーかは<tt>f_eof()</tt>,<tt>f_error()</tt>マクロで調べられます。</p>
|
||||
<p>APIにUnicodeが選択されている(<tt>_LFN_UNICODE</tt>が1)ときは、UTF-8エンコードのテキスト・ファイルとしてUCS-2に変換してバッファに読み込みます。それ以外の時は無変換(1文字1バイト)で読み込みます。</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="para">
|
||||
<div class="para comp">
|
||||
<h4>対応情報</h4>
|
||||
<p><tt>_USE_STRFUNC</tt>が 1または 2のとき使用可能です。2のときは、ファイルに含まれる<tt>'\r'</tt>が取り除かれてバッファに読み込まれます。</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="para">
|
||||
<div class="para ref">
|
||||
<h4>参照</h4>
|
||||
<p><tt><a href="open.html">f_open</a>, <a href="read.html">f_read</a>, <a href="putc.html">f_putc</a>, <a href="puts.html">f_puts</a>, <a href="printf.html">f_printf</a>, <a href="close.html">f_close</a>, <a href="sfile.html">FIL</a></tt></p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user