<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>gcc</anon>
  </categories>
  <description>Cでファイルから一行取得するのは結構面倒な作業だと思います。でも、再帰使ったららくちんに一行取得出来るんじゃないかと。再帰だと、 改行があるまでgetchr 改行があったらmalloc ダダァッと文字を書き込む という感じに書ける。 一行取得だけじゃ面白くないので、インタプリタHQ9+を書いてみた。HQ9+ - Wikipediaによると、HQ9+の仕様は H Hello, World!!を出力 Q プログラムの内容を出力 9 99 Bottles of Beerの歌詞を出力する + カウンタを一個増やす。 99の数え歌は出力が長すぎるので、カウンタ分歌詞を表示する仕様にしました。 #incl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080110%2F1199969889&quot; title=&quot; 再帰で一行取得とHQ9+ - ボクノス&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-01-10 21:58:09</published>
  <title> 再帰で一行取得とHQ9+</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20080110/1199969889</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
