Skip to content

Commit

Permalink
Docs generated from: feat: add fputc wrapper to IO (#1417)
Browse files Browse the repository at this point in the history
* feat: add fputc wrapper to IO

fputc is a low-level function that writes a single C character to a
file. We can use this as a basis for more elegant APIs.

The signature matches that of the C standard library function for
compatibility, which takes an Int instead of a char. However, the
documentation notes that the int argument is converted to an unsigned
char.

* doc: fix typos for fgetc and fputc docs
  • Loading branch information
carp-lang committed Apr 19, 2022
1 parent 935301f commit 453813d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion core/IO.Raw.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ <h3 id="fgetc">

</span>
<p class="doc">
<p>gets a character from file (thin wrapper for the from C standard library).</p>
<p>gets a character from file (thin wrapper for fgetc from the C standard library).</p>

</p>
</div>
Expand All @@ -534,6 +534,26 @@ <h3 id="fopen">

</p>
</div>
<div class="binder">
<a class="anchor" href="#fputc">
<h3 id="fputc">
fputc
</h3>
</a>
<div class="description">
external
</div>
<p class="sig">
(Fn [Int, (Ptr FILE)] Int)
</p>
<span>

</span>
<p class="doc">
<p>writes a character to a file (thin wrapper for fputc from the C standard library).</p>

</p>
</div>
<div class="binder">
<a class="anchor" href="#fread">
<h3 id="fread">
Expand Down

0 comments on commit 453813d

Please sign in to comment.