<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mocomei</author_name>
  <author_url>https://blog.hatena.ne.jp/mocomei/</author_url>
  <blog_title>365日コーディングブログ</blog_title>
  <blog_url>https://mocomei.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>お題 動的にメモリを確保する ソース #include &lt;stdio.h&gt;#include &lt;stdlib.h&gt; int main(void){ char *str; int num, i; printf(&quot;何文字のaを用意しますか?\n&quot;); scanf(&quot;%d&quot;,&amp;num); str = (char *) malloc(sizeof(char) * (num+1)); if(!str){ printf(&quot;メモリが確保できませんでした。\n&quot;); return 1; } for(i=0; i&lt;num; i++){ *(str+i) = 'a'; } *(str+num) = '\0'; pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocomei.hatenablog.com%2Fentry%2F2013%2F06%2F27%2F215505&quot; title=&quot;20130627【C言語】動的にメモリを確保する - 365日コーディングブログ&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>2013-06-27 21:55:05</published>
  <title>20130627【C言語】動的にメモリを確保する</title>
  <type>rich</type>
  <url>https://mocomei.hatenablog.com/entry/2013/06/27/215505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
