{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs-yata.hatenadiary.org%2Fentry%2F20100803%2F1280847057\" title=\"\u3068\u304d\u306b popen() \u306f\u4fbf\u5229 - \u3084\u305f\uff20\u306f\u3066\u306a\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","author_name":"s-yata","categories":[],"title":"\u3068\u304d\u306b popen() \u306f\u4fbf\u5229","provider_url":"https://hatena.blog","url":"https://s-yata.hatenadiary.org/entry/20100803/1280847057","published":"2010-08-03 23:50:57","version":"1.0","author_url":"https://blog.hatena.ne.jp/s-yata/","blog_title":"\u3084\u305f\uff20\u306f\u3066\u306a\u65e5\u8a18","description":"\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u63a2\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u308a\uff0c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3093\u3060\u308a\uff0c\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3059\u308b\u624b\u9593\u3092\u304b\u3051\u305f\u304f\u306a\u3044\u3068\u304d\uff0c\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u3067\u3042\u308c\u3070\uff0cpopen() \u3092\u4f7f\u3046\u3068\u3044\u3046\u624b\u304c\u3042\u308a\u307e\u3059\uff0e\u4f8b\u3048\u3070\uff0c\u6a19\u6e96\u5165\u529b\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u3092 gzip \u3067\u5727\u7e2e\u3057\u3066 \"out.gz\" \u306b\u4fdd\u5b58\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\uff0cpopen() \u3068 pclose() \u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\uff0e #include <stdio.h> int main() { char buf[4096]; ::FILE *fp = ::popen(\"gzip -c > out.gz\", \"w\"); if (fp == NULL) { ::fpri\u2026","blog_url":"https://s-yata.hatenadiary.org/","type":"rich","width":"100%","image_url":null}