<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masami256</author_name>
  <author_url>https://blog.hatena.ne.jp/masami256/</author_url>
  <blog_title>φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ</blog_title>
  <blog_url>https://kernhack.hatenablog.com/</blog_url>
  <categories>
    <anon>c</anon>
  </categories>
  <description>Linuxカーネルのコードを読んでいて?:なんて演算子が使われていて？？？と思ったのでめも。 gccの拡張機能で3項演算子の拡張としてUsing the GNU Compiler Collection (GCC): Conditionalsなんてのがありました。 以下のようなコードを z = x ? x : y このように置き換えることが可能 z = x ?: y 実際使ってみるとこんな感じに。 masami@saga:~$ cat a.c #include &lt;stdio.h&gt; int main(int argc, char **argv) { char *p = argc &gt; 1 ? arg…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkernhack.hatenablog.com%2Fentry%2F2017%2F06%2F03%2F225750&quot; title=&quot;φ(..)メモメモ gccの3項演算子の拡張メモ - φ(・・*)ゞ ｳｰﾝ　カーネルとか弄ったりのメモ&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>https://cdn.mogile.archive.st-hatena.com/v1/image/masami256/302457491265806682.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-03 22:57:50</published>
  <title>φ(..)メモメモ gccの3項演算子の拡張メモ</title>
  <type>rich</type>
  <url>https://kernhack.hatenablog.com/entry/2017/06/03/225750</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
