<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kankinkon</author_name>
  <author_url>https://blog.hatena.ne.jp/kankinkon/</author_url>
  <blog_title>Afro-Blue</blog_title>
  <blog_url>https://kankinkon.hatenadiary.org/</blog_url>
  <categories>
    <anon>C言語</anon>
  </categories>
  <description>strdupは引数に与えられた文字をmallocで領域確保して、そのポインタを返す char c[100] = &quot;test test test&quot;; char *c2; c2 = strdup(c); /* このコメント部分のようにはできない strcpy(c2, c); printf(&quot;1 ==&gt; %s&quot;, c2); */</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkankinkon.hatenadiary.org%2Fentry%2F20120318%2F1332021215&quot; title=&quot;strdup - Afro-Blue&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>2012-03-18 06:53:35</published>
  <title>strdup</title>
  <type>rich</type>
  <url>https://kankinkon.hatenadiary.org/entry/20120318/1332021215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
