<?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>
  </categories>
  <description>「ディレクトリを fopen の &quot;r&quot; で開く」事が成功する前提のコードを見かけた。 Unix 系だとたまたま動くという理解で良いんだよね？ コード if ((ffp = fopen(fn, &quot;r&quot;)) == NULL) { if (errno == ENOENT) return (FIOFNF); return (FIOERR); } /* If 'fn' is a directory open it with dired. */ if (fisdir(fn) == TRUE) return (FIODIR);</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigepon.hatenablog.com%2Fentry%2F20101210%2F1291987367&quot; title=&quot;ディレクトリを fopen の &amp;quot;r&amp;quot; で開く - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-12-10 22:22:47</published>
  <title>ディレクトリを fopen の &quot;r&quot; で開く</title>
  <type>rich</type>
  <url>https://higepon.hatenablog.com/entry/20101210/1291987367</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
