<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syohex</author_name>
  <author_url>https://blog.hatena.ne.jp/syohex/</author_url>
  <blog_title>Shohei Yoshida's Diary</blog_title>
  <blog_url>https://syohex.hatenablog.com/</blog_url>
  <categories>
    <anon>c</anon>
  </categories>
  <description>github.com たまたま目に入ったこのコードを見ていて, zero length arrayって末尾のメンバ以外でも使えたんだって思って気になるところを調べてみた. Flexible array en.wikipedia.org C99から入った機能. 配列の長さを宣言しないことで利用できる. sizeofはできない. 構造体などの末尾フィールドに置くことができる. 典型的な使い方は以下のような感じ. struct Data { // some fields SomeData s[]; }; struct Data *d = malloc(sizeof(Data) + some_arbi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyohex.hatenablog.com%2Fentry%2F2022%2F05%2F09%2F234241&quot; title=&quot; zero length array, flexible array - Shohei Yoshida&amp;#39;s Diary&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>2022-05-09 23:42:41</published>
  <title> zero length array, flexible array</title>
  <type>rich</type>
  <url>https://syohex.hatenablog.com/entry/2022/05/09/234241</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
