<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>madotubo</author_name>
  <author_url>https://blog.hatena.ne.jp/madotubo/</author_url>
  <blog_title>言語解明</blog_title>
  <blog_url>https://madotubo.hatenadiary.org/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>前回は一行ずつ入出力したが、一文字ずつ入出力する関数も存在する。getchar関数とputchar関数がそれ。改行されまで入力し続け、最後にまとめて出力する。とりあえずコードを。 #include&lt;stdio.h&gt; int main(void){ int eof; printf(&quot;文字を入力してください。\n&quot;); while((eof = getchar()) != EOF){ putchar(eof); } return 0; } 出力結果 文字を入力してください。 hello world hello world ^Z int型の変数「eof」にgetcharで入力されたものを代入する。も…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmadotubo.hatenadiary.org%2Fentry%2F20081223%2F1230190571&quot; title=&quot;一文字の入出力 - 言語解明&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>2008-12-23 16:36:11</published>
  <title>一文字の入出力</title>
  <type>rich</type>
  <url>https://madotubo.hatenadiary.org/entry/20081223/1230190571</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
