<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>C++</anon>
  </categories>
  <description>テンポラリファイルを作るのに、テンポラリフォルダの値を得る必要に迫られて。 忘れないうちにメモメモ。 import System.Environment get_env :: [String] -&gt; String -&gt; IO String get_env [] d = return d get_env (s:ss) d = catch ( getEnv s ) ( \ _ -&gt; get_env ss d ) -- test main = get_env [&quot;TEMP&quot;, &quot;TMP&quot;] &quot;.&quot; &gt;&gt;= print C++だとこんな感じ。メモメモ。 #include &lt;cstdlib&gt; /// @…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20080527%2F1211891297&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-05-27 21:28:17</published>
  <title>環境変数の値を得る</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20080527/1211891297</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
