<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higepon</author_name>
  <author_url>https://blog.hatena.ne.jp/higepon/</author_url>
  <blog_title>higepon blog</blog_title>
  <blog_url>https://higepon.hatenablog.com/</blog_url>
  <categories>
    <anon>c</anon>
    <anon>Mona</anon>
  </categories>
  <description>Tremor の実験で発覚した fread の戻り値の問題。 Mona の fread はファイルが読めないときは -1 を返すが、手元の Linux の fread は 0 を返している。 こういうときは「man fread」 返り値 fread() と fwrite() は読み書きに成功した要素の個数を返す。エラーが生じた場合や、end-of-file(ファイルの最後)に達し た場合、返り値は指定した個数よりも小さい値(またはゼロ)となる。 fread() は end-of-file とエラーを区別しないので、どちらが生じたかを判断するためには、呼び出し側で feof(3) と fer‐ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigepon.hatenablog.com%2Fentry%2F20070828%2F1188315606&quot; title=&quot; fread の戻り値について - higepon 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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/higepon/20070829/20070829003704.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-08-28 00:40:06</published>
  <title> fread の戻り値について</title>
  <type>rich</type>
  <url>https://higepon.hatenablog.com/entry/20070828/1188315606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
