<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-yata</author_name>
  <author_url>https://blog.hatena.ne.jp/s-yata/</author_url>
  <blog_title>やた＠はてな日記</blog_title>
  <blog_url>https://s-yata.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ライブラリを探してインストールしたり，ドキュメントを読んだり，動作を確認したりする手間をかけたくないとき，コマンドで実現できることであれば，popen() を使うという手があります．例えば，標準入力から読み込んだデータを gzip で圧縮して &quot;out.gz&quot; に保存するプログラムなら，popen() と pclose() を使って以下のように記述できます． #include &lt;stdio.h&gt; int main() { char buf[4096]; ::FILE *fp = ::popen(&quot;gzip -c &gt; out.gz&quot;, &quot;w&quot;); if (fp == NULL) { ::fpri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs-yata.hatenadiary.org%2Fentry%2F20100803%2F1280847057&quot; title=&quot;ときに popen() は便利 - やた＠はてな日記&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-08-03 23:50:57</published>
  <title>ときに popen() は便利</title>
  <type>rich</type>
  <url>https://s-yata.hatenadiary.org/entry/20100803/1280847057</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
