<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takehikom</author_name>
  <author_url>https://blog.hatena.ne.jp/takehikom/</author_url>
  <blog_title>わさっきhb</blog_title>
  <blog_url>https://takehikom.hateblo.jp/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>去年の今ごろより少し前に書いていたメモから． Cでファイルをオープンして，1文字ずつ読み出すという処理を書くとき，普通は，fopenで開き，fgetcで c = fgetc(fp); と書きます．ここでcはint型の変数として，あらかじめ宣言しておきます．もしchar型で宣言すると，関数の戻り値がEOFだったときにトラブルのもとです． 2年後期の演習で，ソケット通信の前提としてin the runup to the communication programming using socket，低水準入出力を学んでもらっています．低水準入出力では，openで開き，readで read(fd, &amp;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20071015%2F1192396235&quot; title=&quot; fgetcにはint型で，readにはchar型で - わさっきhb&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>2007-10-15 06:10:35</published>
  <title> fgetcにはint型で，readにはchar型で</title>
  <type>rich</type>
  <url>https://takehikom.hateblo.jp/entry/20071015/1192396235</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
