<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higepon</author_name>
  <author_url>https://blog.hatena.ne.jp/higepon/</author_url>
  <blog_title>higepon blog</blog_title>
  <blog_url>https://higepon.hatenablog.com/</blog_url>
  <categories>
    <anon>mosh</anon>
  </categories>
  <description>libc の qsort を呼び出してみる。こんな感じの API はどうでしょうか？＞id:mjt さん Ubuntu AMD64 で確認しています。 ;; Mosh callback example *draft*. (import (mosh) (mosh ffi) (rnrs)) (define array (u8-list-&gt;bytevector '(6 5 3 4 1 7 2))) (let* ([libc (open-shared-library &quot;libc.so.6&quot;)] [qsort (c-function libc void qsort void* int int callb…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigepon.hatenablog.com%2Fentry%2F20090903%2F1251985098&quot; title=&quot; FFI callback のサンプル - higepon blog&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>2009-09-03 22:38:18</published>
  <title> FFI callback のサンプル</title>
  <type>rich</type>
  <url>https://higepon.hatenablog.com/entry/20090903/1251985098</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
