<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BG1</author_name>
  <author_url>https://blog.hatena.ne.jp/BG1/</author_url>
  <blog_title>車輪のx発明 ~B.G's Blog~</blog_title>
  <blog_url>https://bg1.hatenablog.com/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>fgetcは、指定されたストリームから、文字を取得する。 getcと違い、こちらは関数で実装することになっている。Man page of FGETC C言語関数辞典 - fgetcファイルの終わりまで1文字ずつ読み込んでみる。1文字ずつ読み込み、これ以上読み込めないファイルの終わりまで来ると、fgetcはEOFを返す。 (ファイル終端、EOFはEnd Of Fileの略。) その時、ループを抜けるようにする。 それまでは、putcharで文字を出力し続ける。 $ ls fgetc fgetc.c test.txt $ cat test.txt ABCDE$ $ gcc fgetc.c -o f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2019%2F05%2F17%2F210000&quot; title=&quot;fgetc - 車輪のx発明 ~B.G&amp;#39;s Blog~&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-17 21:00:00</published>
  <title>fgetc</title>
  <type>rich</type>
  <url>https://bg1.hatenablog.com/entry/2019/05/17/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
