<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fa11enprince</author_name>
  <author_url>https://blog.hatena.ne.jp/fa11enprince/</author_url>
  <blog_title>Gobble up pudding</blog_title>
  <blog_url>https://gup.monster/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>Programming</anon>
  </categories>
  <description>printf系の書式(フォーマット)文字列でエスケープしなきゃなんないのはどれかわかってなくてハマりました。 正解のコード char buffer[80]; char format[20]; // 20もあれば用は足りるので…… printf(&quot;なんかいれてね : &quot;); //sprintf(format, &quot;%%%d[^\\n]%%*[^\\n]&quot;, 80 - 1); // これは間違い sprintf(format, &quot;%%%d[^\n]%%*[^\n]&quot;, 80 - 1); // 文字数と空白文字を考慮 scanf(format, buffer); getchar(); // 入力ストリ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgup.monster%2Fentry%2F2015%2F03%2F10%2F034307&quot; title=&quot;printf系の書式文字列のエスケープでハマったけど解決した - Gobble up pudding&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>https://cdn-ak.f.st-hatena.com/images/fotolife/f/fa11enprince/20150725/20150725231409.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-10 03:43:07</published>
  <title>printf系の書式文字列のエスケープでハマったけど解決した</title>
  <type>rich</type>
  <url>https://gup.monster/entry/2015/03/10/034307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
