<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryochack</author_name>
  <author_url>https://blog.hatena.ne.jp/ryochack/</author_url>
  <blog_title>ryochack.clipboard</blog_title>
  <blog_url>https://ryochack.hatenadiary.org/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>C言語の関数ポインタは振る舞いを動的に変えるのに便利。 だけど、関数の型情報に縛られるのは何とかできないかと調べていたら、関数ポインタをキャストしてしまえば、どんな型の関数でも実行できることを知った。 ポインタ虎の巻〜関数ポインタの使い方 #include &lt;stdio.h&gt; int add(int x, int y) { return x + y; } int square(int x) { return x * x; } float div(float x, float y) { return x / y; } int main() { void (* pfunc)(void); int …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryochack.hatenadiary.org%2Fentry%2F20110427%2F1303918526&quot; title=&quot;関数ポインタで型情報の異なる関数を実行する -キャスト- - ryochack.clipboard&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>2011-04-27 00:35:26</published>
  <title>関数ポインタで型情報の異なる関数を実行する -キャスト-</title>
  <type>rich</type>
  <url>https://ryochack.hatenadiary.org/entry/20110427/1303918526</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
