<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KABIRA</author_name>
  <author_url>https://blog.hatena.ne.jp/KABIRA/</author_url>
  <blog_title>KABIRAの日記</blog_title>
  <blog_url>https://kabira.hatenadiary.org/</blog_url>
  <categories>
    <anon>Cの基本</anon>
    <anon>UNIX</anon>
  </categories>
  <description>シェル上からmain関数へ値を引き渡すとき コマンドライン引数を使う その後型変数変換によって文字列から数値へ変換 以下をコンパイルして testという実行ファイルとすると /*test.c*/ #include &lt;stdio.h&gt; int main(int argc, char *argv[]) { int i; for (i = 0; i &lt; argc; i++) printf(&quot;argv[%d] = %s\n&quot;, i, argv[i]); return 0; } 実行時にシェルから値を入れることができて ./test a b c 1 2 3 実行結果 ~$ ./test a b c 1 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkabira.hatenadiary.org%2Fentry%2F20101126%2F1290736416&quot; title=&quot;コマンドライン引数 - KABIRAの日記&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-11-26 10:53:36</published>
  <title>コマンドライン引数</title>
  <type>rich</type>
  <url>https://kabira.hatenadiary.org/entry/20101126/1290736416</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
