<?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言語で凶悪なのが、文字配列。というか、文字列自体あんまり得意じゃない。今回は、配列で行の取得。スクリプト言語に慣れてると固定長配列は凄くキツイ。テキストファイルについての考察。 行はは文字の連続と改行で表されて、 ファイルは行の連続と、EOFで構成されている。 と、再帰的なんだけど納得がいかない。K&amp;Rの1.9をちょっとわかりやすくしてみた。一番長い行を表示する。 #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #define MAX_LENGTH 1024 int getline(char s[], int limit); void copy(char to[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070722%2F1185082323&quot; title=&quot; K&amp;amp;Rを読もう(9) 1.9 文字配列 - ボクノス&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>2007-07-22 14:32:03</published>
  <title> K&amp;Rを読もう(9) 1.9 文字配列</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070722/1185082323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
