<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ir9</author_name>
  <author_url>https://blog.hatena.ne.jp/ir9/</author_url>
  <blog_title>いろきゅうの（元）はてなダイアリー</blog_title>
  <blog_url>https://ir9.hatenablog.jp/</blog_url>
  <categories>
    <anon>theSpoke</anon>
  </categories>
  <description>さて、昨日の EOFが書き込まれ無いため、ファイルが壊れるという問題ですが、結局次のコードを書いて対処しました。 FILE* pFile; // 適当にオープンconst long nFile = _get_osfhandle(_fileno(pFile));if(nFile != -1) ::SetEndOfFile((HANDLE)nFile); FILE 構造体から、Win32API互換のハンドルを取得して、そのハンドルに対して SetEndOfFile を実行し、EOFを書き込みました。…なんか、負け気味っぽいコードですが、その辺はまぁ気にしない方向で。＾＾；で、この問題に対処した結果…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fir9.hatenablog.jp%2Fentry%2F20040817%2F1169581709&quot; title=&quot;EOFの問題 - いろきゅうの（元）はてなダイアリー&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>http://ir9.jp/hd/tS040818.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2004-08-17 04:48:29</published>
  <title>EOFの問題</title>
  <type>rich</type>
  <url>https://ir9.hatenablog.jp/entry/20040817/1169581709</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
