<p>The f_putc funciton puts a character to the file.</p>
16
<pre>
17
int f_putc (
18
int <em>Chr</em>, /* A character to put */
19
FIL* <em>FileObject</em> /* File object */
20
);
21
</pre>
22
</div>
23
24
<div class="para">
25
<h4>Parameters</h4>
26
<dl class="par">
27
<dt>Chr</dt>
28
<dd>A character to be put.</dd>
29
<dt>FileObject</dt>
30
<dd>Pointer to the open file object structuer.</dd>
31
</dl>
32
</div>
33
34
35
<div class="para">
36
<h4>Return Values</h4>
37
<p>When the character was written successfuly, the function returns the character. When the function failed due to disk full or any error, an <tt>EOF</tt> will be returned.</p>
38
</div>
39
40
41
<div class="para">
42
<h4>Description</h4>
43
<p>The f_putc() is a wrapper function of <a href="write.html">f_write()</a>.</p>
44
</div>
45
46
47
<div class="para">
48
<h4>QuickInfo</h4>
49
<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_USE_STRFUNC</tt> is 1 or 2. When it is set to 2, a <tt>'\n'</tt> is converted to <tt>"\r\n"</tt>.</p>