<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaitoh</author_name>
  <author_url>https://blog.hatena.ne.jp/kaitoh/</author_url>
  <blog_title>kaitohの日記</blog_title>
  <blog_url>https://kaitoh.hatenadiary.org/</blog_url>
  <categories>
    <anon>Program</anon>
  </categories>
  <description>仕事で struct st{ int id; int x; int y; }; enum {hoge, fuga, aho, baka, end_enum}; struct st ary[] = { {hoge, 1,100}, {fuga, 2,200}, {aho, 3,300}, {baka, 4,400} }; って定義して、 foo(int id) { for(i=0 ; i &lt; end_enum ; i++) { if(ary[i].id == id) ... } } ってわざわざ線形探索してるコードが多い。enumの定義順とaryの初期値の定義順のずれを恐れてるのかなあ。 静的な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaitoh.hatenadiary.org%2Fentry%2F20080314%2F1205516421&quot; title=&quot; Cで静的に連想配列を生成したいんだがなんとかならんのか - kaitohの日記&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>2008-03-14 02:40:21</published>
  <title> Cで静的に連想配列を生成したいんだがなんとかならんのか</title>
  <type>rich</type>
  <url>https://kaitoh.hatenadiary.org/entry/20080314/1205516421</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
