<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>compound</author_name>
  <author_url>https://blog.hatena.ne.jp/compound/</author_url>
  <blog_title>よせばいいのに</blog_title>
  <blog_url>https://compound.hatenadiary.org/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>転職活動も佳境に入ったとき、某社の役員面接で次の質問を受けた。 ファイルに以下を書き込み、コンパイルするとどうなるか？ #include &quot;/dev/tty&quot; 役員面接だから、技術的な質問は無いだろうと高を括っていたのだが、完全に隙を突かれてしまった。結局、「何も起きないんじゃないですか？」などと間の抜けた解答をしてしまったのだが、何故か内定をいただくことができた。少々話がそれてしまったが、今日、実際に確かめてみてどうなるかが分かった。上記のコードをファイルに書き込み、コンパイルすると、ターミナル上で文字を入力できるようになる。そこで、任意のC言語のコードを入力し、Ctrl+Dで終了すると、入…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcompound.hatenadiary.org%2Fentry%2F20100516%2F1274010810&quot; title=&quot;標準入力をコンパイル？ - よせばいいのに&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>2010-05-16 20:53:30</published>
  <title>標準入力をコンパイル？</title>
  <type>rich</type>
  <url>https://compound.hatenadiary.org/entry/20100516/1274010810</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
