<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>Foreign.Marshal.UtilsのwithはC の関数への引数をポインタ渡しするときに使う。 -- ghc --make -Wall frexp.hs test.c -o frex {-# LANGUAGE ForeignFunctionInterface #-} import Foreign.Ptr import Foreign.C.Types import Foreign.Marshal.Utils foreign import ccall unsafe &quot;test&quot; c_test :: Ptr CInt -&gt; Ptr CInt -&gt; IO CInt func :: CInt -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20131201%2F1385846069&quot; title=&quot; with を使って C の関数へポインタ渡しをする - sirocco の書いてもすぐに忘れるメモ&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>2013-12-01 06:14:29</published>
  <title> with を使って C の関数へポインタ渡しをする</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20131201/1385846069</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
