<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmoの日記</blog_title>
  <blog_url>https://podhmo.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>ctypes</anon>
  </categories>
  <description>ctypesって？ pythonのFFI用のモジュールらしい。 pythonの枠からはみ出た関数をpythonから呼び出すための接触面といった感じのもの.ドキュメントを見て、動くコードを書いてみた。 http://docs.python.org/library/ctypes.html やってみたのは以下のこと floatの配列を作ってこれをqsort python側で構造体を作成してこれをqsort qsortは関数ポインタを使っているし、だいたいの機能を網羅していると思う。((実際には、bitfieldの利用やunionなど使っていない機能はあるけれど、まぁ必要十分だと思う) 実際のコード …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpodhmo.hatenadiary.org%2Fentry%2F20120720%2F1342800080&quot; title=&quot;ctypes入門してみた。 - podhmoの日記&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>2012-07-20 01:01:20</published>
  <title>ctypes入門してみた。</title>
  <type>rich</type>
  <url>https://podhmo.hatenadiary.org/entry/20120720/1342800080</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
