<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seinzumtode</author_name>
  <author_url>https://blog.hatena.ne.jp/seinzumtode/</author_url>
  <blog_title>how to code something</blog_title>
  <blog_url>https://seinzumtode.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>文字列リテラルを返却する場合は静的なので問題ないんだけど、 （Char型への）ポインタであるローカル変数を返却しようとするとエラーが出る。 関数が呼ばれた後に、ローカル変数が破棄されていることが原因らしい。 こういうときにmallocを使う。 http://www-ui.is.s.u-tokyo.ac.jp/~tera1984/dat/struct.txt #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; char *msg(void){ return &quot;Hello\n&quot;; } char *msg2(void){ char *…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseinzumtode.hatenadiary.jp%2Fentry%2F20140524%2F1400933325&quot; title=&quot;文字列を返り値にする - how to code something&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>2014-05-24 21:08:45</published>
  <title>文字列を返り値にする</title>
  <type>rich</type>
  <url>https://seinzumtode.hatenadiary.jp/entry/20140524/1400933325</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
